aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2015-02-04 09:19:59 +0100
committerLuc Donnet2015-02-04 09:19:59 +0100
commit1834d5bfb6ed4280c6bff7672e5b683f1279e766 (patch)
treeaa1a2f22095262e8e38f9d3001d24c010713e0a1
parentc1b1134a62f54e41df02410ffe04c5c95ce43c53 (diff)
downloadchouette-core-1834d5bfb6ed4280c6bff7672e5b683f1279e766.tar.bz2
Update spec features for group of lines
-rw-r--r--spec/features/group_of_lines_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/group_of_lines_spec.rb b/spec/features/group_of_lines_spec.rb
index 4d1d10ba0..a776a4cd8 100644
--- a/spec/features/group_of_lines_spec.rb
+++ b/spec/features/group_of_lines_spec.rb
@@ -6,7 +6,7 @@ describe "Group of lines", :type => :feature do
let!(:network) { Factory(:network) }
let!(:company) { Factory(:company) }
- let!(:lines) { Array.new(2) { Factory(:line_with_stop_areas, :network => network, :company => company) } }
+ let!(:line) { Factory(:line, :network => network, :company => company) }
let!(:group_of_lines) { Array.new(2) { Factory(:group_of_line) } }
subject { group_of_lines.first }
@@ -38,7 +38,7 @@ describe "Group of lines", :type => :feature do
click_link "Ajouter un groupe de ligne"
fill_in "group_of_line[name]", :with => "Group of lines 1"
fill_in "group_of_line[registration_number]", :with => "1"
- fill_in "group_of_line[objectid]", :with => "test:GroupOfLine:999"
+ fill_in "group_of_line[objectid]", :with => "test:GroupOfLine:999"
click_button("Créer groupe de ligne")
expect(page).to have_content("Group of lines 1")
end