Sha256: 3e862ebeac6d6626c397b86f328f7bda0710c75e33306e02d2953fa97dcf6f1c

Contents?: true

Size: 260 Bytes

Versions: 14

Compression:

Stored size: 260 Bytes

Contents

RSpec::Matchers.define :each do |check|
  match do |actual|
    actual.each_with_index do |index, o|
      @object = o
      expect(index).to check
    end
  end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ridley-5.1.1 spec/support/each_matcher.rb
ridley-5.1.0 spec/support/each_matcher.rb
ridley-5.0.0 spec/support/each_matcher.rb
ridley-4.6.1 spec/support/each_matcher.rb
ridley-4.6.0 spec/support/each_matcher.rb
ridley-4.5.1 spec/support/each_matcher.rb
ridley-4.5.0 spec/support/each_matcher.rb
ridley-4.4.3 spec/support/each_matcher.rb
ridley-4.4.2 spec/support/each_matcher.rb
ridley-4.4.1 spec/support/each_matcher.rb
ridley-4.4.0 spec/support/each_matcher.rb
ridley-4.3.2 spec/support/each_matcher.rb
ridley-4.3.1 spec/support/each_matcher.rb
ridley-4.3.0 spec/support/each_matcher.rb