test/dependency_injection_test.rb in invokr-0.9.4 vs test/dependency_injection_test.rb in invokr-0.9.5

- old
+ new

@@ -14,11 +14,11 @@ assert_equal 'farmhouse', obj.album assert_equal 'trey', obj.guitarist end def test_injecting_a_proc - my_proc = -> (foo,bar) do OpenStruct.new foo: foo, bar: bar end + my_proc = lambda { |foo,bar| OpenStruct.new foo: foo, bar: bar } obj = Invokr.inject( my_proc, :using => { :foo => 'bar', @@ -45,10 +45,10 @@ end class TestObject attr :album, :guitarist - def initialize album, guitarist: 'jimmy' + def initialize album, guitarist = 'jimmy' @album = album @guitarist = guitarist end end