method
match_or_compare

1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Matchers::Be
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0
- 1.3.1
- What's this?
match_or_compare()
public
Hide source
# File lib/spec/matchers/be.rb, line 57 def match_or_compare return @actual ? true : false if @expected == :satisfy_if return @actual == true if @expected == :true return @actual == false if @expected == :false return @actual.nil? if @expected == :nil return @actual < @expected if @less_than return @actual <= @expected if @less_than_or_equal return @actual >= @expected if @greater_than_or_equal return @actual > @expected if @greater_than return @actual == @expected if @double_equal return @actual === @expected if @triple_equal return @actual.equal?(@expected) end