From 734c03fdf3d6580da87107c474c5eeeda6a79ac4 Mon Sep 17 00:00:00 2001 From: Zog Date: Thu, 25 Jan 2018 17:48:48 +0100 Subject: Refs #5586; Fix specs --- spec/views/stop_areas/index.html.slim_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/views') diff --git a/spec/views/stop_areas/index.html.slim_spec.rb b/spec/views/stop_areas/index.html.slim_spec.rb index 520cecc1a..6e66c5ab9 100644 --- a/spec/views/stop_areas/index.html.slim_spec.rb +++ b/spec/views/stop_areas/index.html.slim_spec.rb @@ -13,6 +13,7 @@ describe "/stop_areas/index", :type => :view do allow(view).to receive(:link_with_search).and_return("#") allow(view).to receive(:collection).and_return(stop_areas) allow(view).to receive(:current_referential).and_return(stop_area_referential) + allow(view).to receive(:params).and_return({action: :index}) controller.request.path_parameters[:stop_area_referential_id] = stop_area_referential.id render end -- cgit v1.2.3