aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views
diff options
context:
space:
mode:
authorZog2018-04-03 21:53:42 +0200
committerJohan Van Ryseghem2018-04-04 11:10:39 +0200
commite709a1ddaf5686b3463d7697cd21cee3d15957f2 (patch)
treec0f2f57124dae9b0e77dc49162d5dac1f832d3a3 /spec/views
parenta59aa62be66340bb1ac22bad7cb980dbf1a5ffa1 (diff)
downloadchouette-core-e709a1ddaf5686b3463d7697cd21cee3d15957f2.tar.bz2
Fix specs
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/stop_areas/edit.html.erb_spec.rb1
-rw-r--r--spec/views/stop_areas/new.html.erb_spec.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/views/stop_areas/edit.html.erb_spec.rb b/spec/views/stop_areas/edit.html.erb_spec.rb
index bfbb0bb55..1bdb42817 100644
--- a/spec/views/stop_areas/edit.html.erb_spec.rb
+++ b/spec/views/stop_areas/edit.html.erb_spec.rb
@@ -8,6 +8,7 @@ describe "/stop_areas/edit", :type => :view do
before do
allow(view).to receive(:has_feature?)
+ allow(view).to receive(:resource){ stop_area }
end
describe "form" do
diff --git a/spec/views/stop_areas/new.html.erb_spec.rb b/spec/views/stop_areas/new.html.erb_spec.rb
index 23f7387fa..eced129e4 100644
--- a/spec/views/stop_areas/new.html.erb_spec.rb
+++ b/spec/views/stop_areas/new.html.erb_spec.rb
@@ -7,6 +7,7 @@ describe "/stop_areas/new", :type => :view do
before do
allow(view).to receive(:has_feature?)
+ allow(view).to receive(:resource){ stop_area }
end
describe "form" do