Method: RSpec::Matchers#be_within
- Defined in:
- lib/rspec/matchers.rb
#be_within(delta) ⇒ Object Also known as: a_value_within, within
Passes if actual == expected +/- delta
405 406 407 |
# File 'lib/rspec/matchers.rb', line 405 def be_within(delta) BuiltIn::BeWithin.new(delta) end |