diff options
| author | Luc Donnet | 2015-02-04 15:38:20 +0100 |
|---|---|---|
| committer | Luc Donnet | 2015-02-04 15:38:20 +0100 |
| commit | a5ae05b150514fbec95658d11213c7c06a156dcc (patch) | |
| tree | eb420d1d65641fe2bf41c6161c990271b696a9ab | |
| parent | 954cb1b98bfa4fcddc45bf923984911681a3d9aa (diff) | |
| download | chouette-core-a5ae05b150514fbec95658d11213c7c06a156dcc.tar.bz2 | |
Fix spec for group of lines to display map when go to show page
| -rw-r--r-- | spec/features/group_of_lines_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/features/group_of_lines_spec.rb b/spec/features/group_of_lines_spec.rb index a776a4cd8..8ede45b24 100644 --- a/spec/features/group_of_lines_spec.rb +++ b/spec/features/group_of_lines_spec.rb @@ -6,10 +6,14 @@ describe "Group of lines", :type => :feature do let!(:network) { Factory(:network) } let!(:company) { Factory(:company) } - let!(:line) { Factory(:line, :network => network, :company => company) } + let!(:line) { Factory(:line_with_stop_areas, :network => network, :company => company) } let!(:group_of_lines) { Array.new(2) { Factory(:group_of_line) } } subject { group_of_lines.first } + before :each do + subject.lines << line + end + describe "list" do it "display group of lines" do visit referential_group_of_lines_path(referential) @@ -28,6 +32,7 @@ describe "Group of lines", :type => :feature do it "display map" do visit referential_group_of_lines_path(referential) click_link "#{subject.name}" + save_and_open_page expect(page).to have_selector("#map.group_of_line") end end |
