Sha256: 2645facf837b0cb61821b53522802e0fa06542a51a52cd9d7422b8bf61ad38c1

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

module RSpec
  module Matchers
    # @deprecated use +be_within+ instead.
    def be_close(expected, delta)
      RSpec.deprecate("be_close(#{expected}, #{delta})",
        :replacement => "be_within(#{delta}).of(#{expected})",
        :type        => 'the be_close matcher'
      )
      be_within(delta).of(expected)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-expectations-2.99.2 lib/rspec/matchers/be_close.rb
rspec-expectations-2.99.1 lib/rspec/matchers/be_close.rb
rspec-expectations-2.99.0 lib/rspec/matchers/be_close.rb
rspec-expectations-2.99.0.rc1 lib/rspec/matchers/be_close.rb
rspec-expectations-2.99.0.beta2 lib/rspec/matchers/be_close.rb