Sha256: 54f41242bac24c9a368e4f6db63796041157f9e214832c390698adc10b001b29

Contents?: true

Size: 429 Bytes

Versions: 38

Compression:

Stored size: 429 Bytes

Contents

RSpec::Matchers.define :be_a_multiple_of do |expected|
  match do |actual|
    actual % expected == 0
  end

  failure_message_for_should do |actual|
    "expected that #{actual} would be a precise multiple of #{expected}"
  end

  failure_message_for_should_not do |actual|
    "expected that #{actual} would not be a precise multiple of #{expected}"
  end

  description do
    "be a precise multiple of #{expected}"
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
proxy_tester-0.1.1 spec/support/matcher.rb
proxy_tester-0.1.0 spec/support/matcher.rb
proxy_tester-0.0.9 spec/support/matcher.rb
proxy_tester-0.0.8 spec/support/matcher.rb
test_server-0.2.2 spec/support/matcher.rb
test_server-0.2.1 spec/support/matcher.rb
proxy_tester-0.0.7 spec/support/matcher.rb
test_server-0.2.0 spec/support/matcher.rb
test_server-0.1.2 spec/support/matcher.rb
test_server-0.1.1 spec/support/matcher.rb
test_server-0.1.0 spec/support/matcher.rb
test_server-0.0.11 spec/support/matcher.rb
proxy_tester-0.0.6 spec/support/matcher.rb
proxy_tester-0.0.5 spec/support/matcher.rb
proxy_tester-0.0.4 spec/support/matcher.rb
proxy_tester-0.0.3 spec/support/matcher.rb
proxy_tester-0.0.2 spec/support/matcher.rb
proxy_tester-0.0.1 spec/support/matcher.rb