Sha256: 9d6508936dde3acf4f70fd4a00423554eae6a07e1fd0dc0cecf04380dedec2ae
Contents?: true
Size: 249 Bytes
Versions: 3
Compression:
Stored size: 249 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}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
varia_model-0.6.0 | spec/support/matchers/each.rb |
varia_model-0.5.0 | spec/support/matchers/each.rb |
varia_model-0.4.1 | spec/support/matchers/each.rb |