Commit 94f91931 authored by Alexandre Friquet's avatar Alexandre Friquet
Browse files

Fixes broken tests :(

parent 2c7a5b54
......@@ -45,9 +45,9 @@ feature "Manage club novels" do
click_create_button
end
expect(current_path).to eq(club_novel_path(ClubNovel.first))
within "article" do
expect(page).to have_selector("h1", text: new_club_novel.title)
expect(current_path).to eq club_novels_path
within "section#club_novels" do
expect(page).to have_selector("h2", text: new_club_novel.title)
expect(page).to have_content new_club_novel.content
end
end
......@@ -70,9 +70,9 @@ feature "Manage club novels" do
click_update_button
end
expect(current_path).to eq(club_novel_path(club_novel))
within "article" do
expect(page).to have_selector("h1", text: new_title)
expect(current_path).to eq club_novels_path
within "section#club_novels" do
expect(page).to have_selector("h2", text: new_title)
end
end
......@@ -83,7 +83,7 @@ feature "Manage club novels" do
click_update_button
end
within "article" do
within "section#club_novels" do
expect(page).to have_content "Publique : OUI"
end
......@@ -93,7 +93,7 @@ feature "Manage club novels" do
click_update_button
end
within "article" do
within "section#club_novels" do
expect(page).to have_content "Publique : NON"
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment