spec/sugar-high/arguments_spec.rb in sugar-high-0.2.10 vs spec/sugar-high/arguments_spec.rb in sugar-high-0.2.11

- old
+ new

@@ -28,17 +28,19 @@ last_arg(:hello, 3,4).should == :hello end it "should return the :hello => 'abe' " do last_arg({:hi => :def}, 3,4, :hi => 'abe').should == {:hi => 'abe'} + last_arg({:hi => :def}, [3,4, :hi => 'abe']).should == {:hi => 'abe'} end end end describe "Last argument value" do context 'Last arg with default hello' do it "should return the arg value 'abe' " do last_arg_value({:hi => :def}, 3,4, :hi => 'abe').should == 'abe' + last_arg_value({:hi => :def}, [3,4, :hi => 'abe']).should == 'abe' end it "should return the arg value :def " do last_arg_value({:hi => :def}, :hello => 'abe', :good => true).should == :def end