Sha256: df36d5561c395641c5a55d80e176f85601844f761ddd5c36066e5cc6ae860f5a

Contents?: true

Size: 244 Bytes

Versions: 18

Compression:

Stored size: 244 Bytes

Contents

module Spec
  module ObjectExpectations
    def should
      ShouldHelper.new self
    end
  end
end

class Object
  include Spec::ObjectExpectations
end

class Numeric
  def close?(other, precision)
    (self - other).abs < precision
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rspec-0.5.12 lib/spec/api/expectations.rb
rspec-0.5.10 lib/spec/api/expectations.rb
rspec-0.5.11 lib/spec/api/expectations.rb
rspec-0.5.14 lib/spec/api/expectations.rb
rspec-0.5.15 lib/spec/api/expectations.rb
rspec-0.5.4 lib/spec/api/expectations.rb
rspec-0.5.6 lib/spec/api/expectations.rb
rspec-0.5.7 lib/spec/api/expectations.rb
rspec-0.5.13 lib/spec/api/expectations.rb
rspec-0.5.16 lib/spec/api/expectations.rb
rspec-0.5.5 lib/spec/api/expectations.rb
rspec-0.5.3 lib/spec/api/expectations.rb
rspec-0.5.9 lib/spec/api/expectations.rb
rspec-0.5.8 lib/spec/api/expectations.rb
rspec-0.6.3 lib/spec/api/expectations.rb
rspec-0.6.0 lib/spec/api/expectations.rb
rspec-0.6.2 lib/spec/api/expectations.rb
rspec-0.6.1 lib/spec/api/expectations.rb