spec/spec.sane.rb in sane-0.25.6 vs spec/spec.sane.rb in sane-0.25.7

- old
+ new

@@ -8,24 +8,10 @@ require 'rspec' require 'rspec/autorun' end require 'fileutils' - -class Object - alias :yes :should # a.yes == [3] - def yes! - self - end -end - -class FalseClass - def yes! - raise 'failed' # a.true! - end -end - describe Sane do before do #Object.send(:remove_const, 'Klass') rescue nil end @@ -107,10 +93,10 @@ it "should allow for map_by" do ["1"].map_by(:to_i).should == [1] ["1"].collect_by(:to_i).should == [1] a = ["1"] a.map_by!(:to_i) - a.yes == [1] + a.should == [1] a == [1] end it "should allow for contain? and include?" do assert "a".include?( "a")