diff options
| author | jpl | 2017-02-17 15:58:09 +0100 |
|---|---|---|
| committer | jpl | 2017-02-17 15:58:09 +0100 |
| commit | 12037a5d798ab6ecc2d79d1d31c10bd1f22dfb2e (patch) | |
| tree | e339b568155222b5a80b84acabe882659eaee705 /spec | |
| parent | e1e65b2a850c00e7537dfc58ad43b0ade8ebee21 (diff) | |
| download | chouette-core-12037a5d798ab6ecc2d79d1d31c10bd1f22dfb2e.tar.bz2 | |
Refs #2609: upd in progress for stop_areas#show
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/views/stop_areas/show.html.erb_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/views/stop_areas/show.html.erb_spec.rb b/spec/views/stop_areas/show.html.erb_spec.rb index 76bd02827..0c9c6663b 100644 --- a/spec/views/stop_areas/show.html.erb_spec.rb +++ b/spec/views/stop_areas/show.html.erb_spec.rb @@ -7,9 +7,9 @@ describe "/stop_areas/show", :type => :view do let!(:access_points) { assign :access_points, [] } let!(:map) { assign(:map, double(:to_html => '<div id="map"/>'.html_safe)) } - it "should render h2 with the stop_area name" do + it "should render h1 with the stop_area name" do render - expect(rendered).to have_selector("h2", :text => Regexp.new(stop_area.name)) + expect(rendered).to have_selector("h1", :text => Regexp.new(stop_area.name)) end # it "should display a map with class 'stop_area'" do @@ -19,12 +19,12 @@ describe "/stop_areas/show", :type => :view do it "should render a link to edit the stop_area" do render - expect(view.content_for(:sidebar)).to have_selector(".actions a[href='#{view.edit_stop_area_referential_stop_area_path(stop_area_referential, stop_area)}']") + expect(rendered).to have_selector("a[href='#{view.edit_stop_area_referential_stop_area_path(stop_area_referential, stop_area)}']") end it "should render a link to remove the stop_area" do render - expect(view.content_for(:sidebar)).to have_selector(".actions a[href='#{view.stop_area_referential_stop_area_path(stop_area_referential, stop_area)}'][class='remove']") + expect(rendered).to have_selector("a[href='#{view.stop_area_referential_stop_area_path(stop_area_referential, stop_area)}']") end end |
