Sha256: a87d8352292090258985866df596a70958f8cdf8bf85edbbe8f0ef2b93c96052
Contents?: true
Size: 449 Bytes
Versions: 49
Compression:
Stored size: 449 Bytes
Contents
# -*- encoding : utf-8 -*- # Added based on http://www.arctickiwi.com/blog/upgrading-to-rspec-2-with-ruby-on-rails-3 # God bless you Jonathon Horsman def assert_difference(executable, how_many = 1, &block) before = eval(executable) yield after = eval(executable) after.should == before + how_many end def assert_no_difference(executable, &block) before = eval(executable) yield after = eval(executable) after.should == before end
Version data entries
49 entries across 49 versions & 1 rubygems