aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-06-09 11:26:51 +0200
committerTeddy Wing2017-06-09 11:26:51 +0200
commit9dab28fef1ac66b02a1ef62fdfb86cfc5ff13b96 (patch)
tree7140cc7d7744b93cbd49039b633ce67bc41f3533
parent75ff0d93115a3a007468b726d909e17c6995c427 (diff)
downloadchouette-core-9dab28fef1ac66b02a1ef62fdfb86cfc5ff13b96.tar.bz2
TableBuilder spec: Change params hash to new Ruby hash syntax
I had copied this from a debug session outputting a controller's `params` hash. The original was: {"controller"=>"workbenches", "action"=>"show", "id"=>"1", "q"=>{"archived_at_not_null"=>"1", "archived_at_null"=>"1"}} which I just copy-pasted into my test. Since new code should be using the new syntax, change this to use colons instead of arrows. Refs #3479
-rw-r--r--spec/helpers/table_builder_helper_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb
index c94df36a5..1049bf996 100644
--- a/spec/helpers/table_builder_helper_spec.rb
+++ b/spec/helpers/table_builder_helper_spec.rb
@@ -25,9 +25,9 @@ describe TableBuilderHelper, type: :helper do
allow(referentials).to receive(:model).and_return(Referential)
allow(helper).to receive(:params).and_return({
- :controller => 'workbenches',
- :action => 'show',
- :id => referentials[0].workbench.id
+ controller: 'workbenches',
+ action: 'show',
+ id: referentials[0].workbench.id
})
expected = <<-HTML