lib/rspec/become_matcher.rb in rspec-become-matcher-0.1.1 vs lib/rspec/become_matcher.rb in rspec-become-matcher-0.1.2
- old
+ new
@@ -31,12 +31,17 @@
else
current == expected
end
end
- def in(limit)
+ def within(limit)
@limit = limit
self
+ end
+
+ def in(limit)
+ warn "[DEPRECATION] `in` is deprecated. Please use `within` instead."
+ within(limit)
end
def failure_message
<<~MESSAGE
Expected #{was} to become #{expected || 'given block'} in #{limit.to_i} second, but not