aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/time_tables
diff options
context:
space:
mode:
authorjpl2017-04-06 15:15:44 +0200
committerjpl2017-04-06 15:15:51 +0200
commit198cf9f3995df6149361c45ee1b2b1ea10288660 (patch)
tree82756e00a27749c3b18790e032f187e51febd3cd /spec/views/time_tables
parent8adf909694b52959483818bf839d6e180015eb99 (diff)
downloadchouette-core-198cf9f3995df6149361c45ee1b2b1ea10288660.tar.bz2
Refs #2890: updating time_tables#show (calendars helper refacto in progress)
Diffstat (limited to 'spec/views/time_tables')
-rw-r--r--spec/views/time_tables/show.html.erb_spec.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/views/time_tables/show.html.erb_spec.rb b/spec/views/time_tables/show.html.erb_spec.rb
index 3b5d7f1f1..f429f9dec 100644
--- a/spec/views/time_tables/show.html.erb_spec.rb
+++ b/spec/views/time_tables/show.html.erb_spec.rb
@@ -13,18 +13,17 @@ describe "/time_tables/show", :type => :view do
it "should render h2 with the time_table comment" do
render
- expect(rendered).to have_selector("h2", :text => Regexp.new(time_table.comment))
+ expect(rendered).to have_selector("h1", :text => Regexp.new(time_table.comment))
end
it "should render a link to edit the time_table" do
render
- expect(view.content_for(:sidebar)).to have_selector(".actions a[href='#{view.edit_referential_time_table_path(referential, time_table)}']")
+ expect(rendered).to have_selector(" a[href='#{view.edit_referential_time_table_path(referential, time_table)}']")
end
it "should render a link to remove the time_table" do
render
- expect(view.content_for(:sidebar)).to have_selector(".actions a[href='#{view.referential_time_table_path(referential, time_table)}'][class='remove']")
+ expect(rendered).to have_selector(" a[href='#{view.referential_time_table_path(referential, time_table)}']")
end
end
-