Permalink
Browse files

Fix hash syntax for Ruby < 1.9

  • Loading branch information...
1 parent a7f90b3 commit c999059015bbd7b6197c920473b9c820d5f2b6ed James Hunt & Paul Mucur committed with mudge Mar 31, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/proffer_spec.rb
@@ -44,17 +44,17 @@ def multiple_proffer
it "doesn't override explicitly provided locals" do
controller.proffering_with_locals(:baz => "quux")
- controller.args_for_render.must_equal([:proffering, :locals => { :baz => "quux", :foo => "bar" }])
+ controller.args_for_render.must_equal([:proffering, { :locals => { :baz => "quux", :foo => "bar" } }])
end
it "prefers the explicit locals over the proffered variables if they have the same name" do
controller.proffering_with_locals(:foo => "new value")
- controller.args_for_render.must_equal([:proffering, :locals => { :foo => "new value" }])
+ controller.args_for_render.must_equal([:proffering, { :locals => { :foo => "new value" } }])
end
it "allows multiple calls to proffer" do
controller.multiple_proffer
- controller.args_for_render.must_equal([:multiple_proffer, :locals => { :foo => "bar", :baz => "quux" }])
+ controller.args_for_render.must_equal([:multiple_proffer, { :locals => { :foo => "bar", :baz => "quux" } }])
end
end
end

0 comments on commit c999059

Please sign in to comment.