Sha256: 9b6292a263e982cebe65814ae15e70d05aabd785b61a16da9584eb47ddfa6f28
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 Bytes
Contents
require "rspec/expectations" RSpec::Matchers.define :be_a_multiple_of do |expected| match do |actual| actual % expected == 0 end end RSpec::Matchers.define :be_greater_than do |expected| match do |actual| actual > expected end end RSpec::Matchers.define :be_less_than_or_equal_to do |expected| match do |actual| actual <= expected end end RSpec::Matchers.define :be_greater_than_or_equal_to do |expected| match do |actual| actual >= expected end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
json_test_data-0.3.0.beta | spec/matchers/number_matchers.rb |
json_test_data-0.1.0 | spec/matchers/number_matchers.rb |