README.md in rspec_candy-0.2.0 vs README.md in rspec_candy-0.2.1
- old
+ new
@@ -35,11 +35,11 @@
Tests if the given `Time` or `DateTime` is the same as the receiving `Time` or `DateTime`, [ignoring sub-second differences](https://makandracards.com/makandra/1057-why-two-ruby-time-objects-are-not-equal-although-they-appear-to-be):
Time.parse('2012-12-01 14:00:00.5').should == Time.parse('2012-12-01 14:00')
- Note that two times in a different time zones will still be considered different.q
+ Note that two times in a different time zones will still be considered different.
**include_hash**
Matches if the given hash is included in the receiving hash:
@@ -86,10 +86,10 @@
**disposable_copy**
Like dup for classes. This will temporarily add a method to a class:
- copy = Model.disposable_copy.class_eval do
+ copy = Model.disposable_copy do
def foo; end
end
object = copy.new