Sha256: 6fc85a7ef37342e6fde855e9377089eb469f420522d4e1e69e591b67cb860ad1

Contents?: true

Size: 141 Bytes

Versions: 12

Compression:

Stored size: 141 Bytes

Contents

require 'rspec/expectations'

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
magicspec-0.0.14 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.11 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.10 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.9 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.8 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.7 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.6 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.5 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.4 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.3 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.2 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb
magicspec-0.0.1 lib/magicspec/generators/magicspec/app/spec/support/matchers/custom_matcher.rb