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.10 spec/support/matcher.rb
proxy_tester-0.1.8 spec/support/matcher.rb
proxy_tester-0.1.6 spec/support/matcher.rb
proxy_tester-0.1.5 spec/support/matcher.rb
proxy_tester-0.1.4 spec/support/matcher.rb
proxy_tester-0.1.3 spec/support/matcher.rb
test_server-0.5.2 spec/support/matcher.rb
test_server-0.5.1 spec/support/matcher.rb
test_server-0.5.0 spec/support/matcher.rb
test_server-0.4.1 spec/support/matcher.rb
test_server-0.4.0 spec/support/matcher.rb
test_server-0.3.7 spec/support/matcher.rb
test_server-0.3.6 spec/support/matcher.rb
test_server-0.3.5 spec/support/matcher.rb
test_server-0.3.4 spec/support/matcher.rb
test_server-0.3.2 spec/support/matcher.rb
test_server-0.3.1 spec/support/matcher.rb
test_server-0.2.4 spec/support/matcher.rb
test_server-0.2.3 spec/support/matcher.rb
proxy_tester-0.1.2 spec/support/matcher.rb