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 ...@@ -45,9 +45,9 @@ feature "Manage club novels" do
click_create_button click_create_button
end end
expect(current_path).to eq(club_novel_path(ClubNovel.first)) expect(current_path).to eq club_novels_path
within "article" do within "section#club_novels" do
expect(page).to have_selector("h1", text: new_club_novel.title) expect(page).to have_selector("h2", text: new_club_novel.title)
expect(page).to have_content new_club_novel.content expect(page).to have_content new_club_novel.content
end end
end end
...@@ -70,9 +70,9 @@ feature "Manage club novels" do ...@@ -70,9 +70,9 @@ feature "Manage club novels" do
click_update_button click_update_button
end end
expect(current_path).to eq(club_novel_path(club_novel)) expect(current_path).to eq club_novels_path
within "article" do within "section#club_novels" do
expect(page).to have_selector("h1", text: new_title) expect(page).to have_selector("h2", text: new_title)
end end
end end
...@@ -83,7 +83,7 @@ feature "Manage club novels" do ...@@ -83,7 +83,7 @@ feature "Manage club novels" do
click_update_button click_update_button
end end
within "article" do within "section#club_novels" do
expect(page).to have_content "Publique : OUI" expect(page).to have_content "Publique : OUI"
end end
...@@ -93,7 +93,7 @@ feature "Manage club novels" do ...@@ -93,7 +93,7 @@ feature "Manage club novels" do
click_update_button click_update_button
end end
within "article" do within "section#club_novels" do
expect(page).to have_content "Publique : NON" expect(page).to have_content "Publique : NON"
end end
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