diff options
| author | Luc Donnet | 2018-04-19 09:17:18 +0200 |
|---|---|---|
| committer | Luc Donnet | 2018-04-19 09:31:18 +0200 |
| commit | e6c6fb7e7544d840bec4d84f8249ed9d5c01661c (patch) | |
| tree | ca4104a7eae8646f55ab747be392a9e46e2ce850 /spec/views | |
| parent | 14f30a9b84da9d93219aa9e9759f93ef71ab3c7f (diff) | |
| download | chouette-core-e6c6fb7e7544d840bec4d84f8249ed9d5c01661c.tar.bz2 | |
Fix spec and i18n Refs #6545 @16545-add_generic_navbar
Diffstat (limited to 'spec/views')
| -rw-r--r-- | spec/views/line_referentials/show.html.slim_spec.rb | 2 | ||||
| -rw-r--r-- | spec/views/stop_area_referentials/show.html.slim_spec.rb (renamed from spec/views/line_referentials/stop_area_referentials/show.html.slim_spec.rb) | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/spec/views/line_referentials/show.html.slim_spec.rb b/spec/views/line_referentials/show.html.slim_spec.rb index 0516677cb..6734957c8 100644 --- a/spec/views/line_referentials/show.html.slim_spec.rb +++ b/spec/views/line_referentials/show.html.slim_spec.rb @@ -10,13 +10,11 @@ describe "/line_referentials/show", :type => :view do it "should not present syncing infos and button" do expect(view.content_for(:page_header_actions)).to_not have_selector("a[href=\"#{view.sync_line_referential_path(line_referential)}\"]") - expect(view.content_for(:page_header_meta)).to_not have_selector(".last-update") end with_permission "line_referentials.synchronize" do it "should present syncing infos and button" do expect(view.content_for(:page_header_actions)).to have_selector("a[href=\"#{view.sync_line_referential_path(line_referential)}\"]", count: 1) - expect(view.content_for(:page_header_meta)).to have_selector(".last-update", count: 1) end end end diff --git a/spec/views/line_referentials/stop_area_referentials/show.html.slim_spec.rb b/spec/views/stop_area_referentials/show.html.slim_spec.rb index 71a8d16f5..a7567a969 100644 --- a/spec/views/line_referentials/stop_area_referentials/show.html.slim_spec.rb +++ b/spec/views/stop_area_referentials/show.html.slim_spec.rb @@ -10,13 +10,11 @@ describe "/stop_area_referentials/show", :type => :view do it "should not present syncing infos and button" do expect(view.content_for(:page_header_actions)).to_not have_selector("a[href=\"#{view.sync_stop_area_referential_path(stop_area_referential)}\"]") - expect(view.content_for(:page_header_meta)).to_not have_selector(".last-update") end with_permission "stop_area_referentials.synchronize" do it "should present syncing infos and button" do expect(view.content_for(:page_header_actions)).to have_selector("a[href=\"#{view.sync_stop_area_referential_path(stop_area_referential)}\"]", count: 1) - expect(view.content_for(:page_header_meta)).to have_selector(".last-update", count: 1) end end end |
