spec/treequel/mixins_spec.rb in treequel-1.8.5 vs spec/treequel/mixins_spec.rb in treequel-1.8.6

- old
+ new

@@ -251,11 +251,11 @@ blockarg = nil @obj.delegated_method( :arg1 ) {|arg| blockarg = arg } blockarg.should == :the_block_argument end - it "reports errors from its caller's perspective", :ruby_1_8_only => true do + it "reports errors from its caller's perspective", :ruby_18 do begin @obj.erroring_delegated_method rescue NoMethodError => err err.message.should =~ /nonexistant_method/ err.backtrace.first.should =~ /#{__FILE__}/ @@ -305,10 +305,10 @@ blockarg = nil @obj.delegated_method( :arg1 ) {|arg| blockarg = arg } blockarg.should == :the_block_argument end - it "reports errors from its caller's perspective", :ruby_1_8_only => true do + it "reports errors from its caller's perspective", :ruby_18 do begin @obj.erroring_delegated_method rescue NoMethodError => err err.message.should =~ /`erroring_delegated_method' for nil/ err.backtrace.first.should =~ /#{__FILE__}/