aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-01-25 17:48:48 +0100
committerZog2018-01-25 17:48:48 +0100
commit734c03fdf3d6580da87107c474c5eeeda6a79ac4 (patch)
tree8c7ba5de4be95ec8ccdf636a2aa15a6223c76979
parent1555c56450b0b0c12d1aa4f5977161c193cfe0cb (diff)
downloadchouette-core-734c03fdf3d6580da87107c474c5eeeda6a79ac4.tar.bz2
Refs #5586; Fix specs
-rw-r--r--app/helpers/table_builder_helper.rb2
-rw-r--r--spec/views/stop_areas/index.html.slim_spec.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb
index b123da802..9a255e757 100644
--- a/app/helpers/table_builder_helper.rb
+++ b/app/helpers/table_builder_helper.rb
@@ -98,7 +98,7 @@ module TableBuilderHelper
class: cls
end
- def self.item_row_class_name collection, model
+ def self.item_row_class_name collection, model=nil
model_name = model&.name
model_name ||=
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