Sha256: 5e621651000133050afe8ef45f1b49acaab6e3e7c533533a6f700a710101db8e

Contents?: true

Size: 267 Bytes

Versions: 123

Compression:

Stored size: 267 Bytes

Contents

RSpec::Matchers.define :each do |check|
  match do |actual|
    actual.each_with_index do |index, o|
      @object = o
      index.should check
    end
  end

  failure_message_for_should do |actual|
    "at[#{@object}] #{check.failure_message_for_should}"
  end
end

Version data entries

123 entries across 123 versions & 3 rubygems

Version Path
ridley-4.2.0 spec/support/each_matcher.rb
ridley-4.1.2 spec/support/each_matcher.rb
ridley-4.1.1 spec/support/each_matcher.rb
ridley-4.1.0 spec/support/each_matcher.rb
motherbrain-1.5.0 spec/support/matchers/each.rb
ridley-4.0.0 spec/support/each_matcher.rb
motherbrain-1.4.0 spec/support/matchers/each.rb
motherbrain-1.3.0 spec/support/matchers/each.rb
motherbrain-1.2.1 spec/support/matchers/each.rb
motherbrain-1.2.0 spec/support/matchers/each.rb
ridley-3.1.0 spec/support/each_matcher.rb
motherbrain-1.1.3 spec/support/matchers/each.rb
motherbrain-1.1.2 spec/support/matchers/each.rb
ridley-3.0.0 spec/support/each_matcher.rb
ridley-3.0.0.rc1 spec/support/each_matcher.rb
motherbrain-1.1.1 spec/support/matchers/each.rb
motherbrain-1.1.0 spec/support/matchers/each.rb
motherbrain-1.0.0 spec/support/matchers/each.rb
motherbrain-0.14.5 spec/support/matchers/each.rb
motherbrain-0.14.4 spec/support/matchers/each.rb