spec/lib/extensions/module_spec.rb in picky-4.14.0 vs spec/lib/extensions/module_spec.rb in picky-4.15.0

- old
+ new

@@ -65,10 +65,17 @@ it 'should raise an error' do lambda do Class.new do forward :bli, :bla, :blu # :to missing end - end.should raise_error(ArgumentError) + end.should raise_error(ArgumentError, "Forwarding needs a target. Supply an options hash with a :to key as the last argument (e.g. forward :something, :to => :a_reader).") + end + it 'should raise an error' do + lambda do + Class.new do + each_forward :bli, :bla, :blu # :to missing + end + end.should raise_error(ArgumentError, "Multi forwarding needs a target. Supply an options hash with a :to key as the last argument (e.g. each_forward :something, :to => :an_array_reader).") end end end end \ No newline at end of file