aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/lines_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/lines_spec.rb')
-rw-r--r--spec/features/lines_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/features/lines_spec.rb b/spec/features/lines_spec.rb
index 4023c1f51..d0db27f10 100644
--- a/spec/features/lines_spec.rb
+++ b/spec/features/lines_spec.rb
@@ -16,8 +16,7 @@ describe "Lines", :type => :feature do
expect(page).to have_content(lines.last.name)
end
- end
-
+ end
describe "show" do
it "display line" do
@@ -29,7 +28,7 @@ describe "Lines", :type => :feature do
it "display map" do
visit referential_lines_path(referential)
click_link "#{lines.first.name}"
- expect(page).to have_selector("#map", :class => 'line')
+ expect(page).to have_selector("#map.line")
end
end
@@ -38,7 +37,7 @@ describe "Lines", :type => :feature do
it "creates line and return to show" do
visit referential_lines_path(referential)
click_link "Ajouter une ligne"
- fill_in "Nom", :with => "Line 1"
+ fill_in "line_name", :with => "Line 1"
fill_in "Numéro d'enregistrement", :with => "1"
fill_in "Identifiant Neptune", :with => "test:Line:999"
click_button("Créer ligne")
@@ -50,7 +49,7 @@ describe "Lines", :type => :feature do
it "edit line" do
visit referential_line_path(referential, subject)
click_link "Modifier cette ligne"
- fill_in "Nom", :with => "Line Modified"
+ fill_in "line_name", :with => "Line Modified"
fill_in "Numéro d'enregistrement", :with => "test-1"
click_button("Modifier ligne")
expect(page).to have_content("Line Modified")