aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuc Donnet2018-04-19 09:46:33 +0200
committerGitHub2018-04-19 09:46:33 +0200
commitca0a4907e5714d6f56ede8d47f2514cdd2752e2f (patch)
tree6f25b8c1b916c0fb9408ca5471ea89fb7799baa2 /spec
parent3396dfd379d5e9f0145b8b40414f0751c2657759 (diff)
parente6c6fb7e7544d840bec4d84f8249ed9d5c01661c (diff)
downloadchouette-core-ca0a4907e5714d6f56ede8d47f2514cdd2752e2f.tar.bz2
Merge pull request #500 from af83/6545-add_generic_navbar
6545 add generic navbar
Diffstat (limited to 'spec')
-rw-r--r--spec/views/line_referentials/show.html.slim_spec.rb2
-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