rubygem-rspec-expectations/rubygem-rspec-expectations-2.14.5-be_truthy-alias.patch
2014-08-13 16:41:12 +09:00

14 lines
421 B
Diff

--- 2.14.5/TMP/lib/rspec/matchers.rb.be_truthy 1970-01-01 09:00:00.000000000 +0900
+++ 2.14.5/TMP/lib/rspec/matchers.rb 2014-08-13 16:30:56.000000000 +0900
@@ -198,6 +198,10 @@
BuiltIn::BeNil.new
end
+ alias_method :be_truthy, :be_true
+ alias_method :be_falsey, :be_false
+ alias_method :be_falsy, :be_falsey
+
# @example
# expect(actual).to be_true
# expect(actual).to be_false