Sha256: 9f17eb49e69139048c9a948e5f17419b4a40f8f64bb73801b5a5f5c243fa63d1

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

require 'rspec/expectations'

RSpec::Matchers.define :all_list_elements_eq do |expected|
  match do |actual|
    actual.each do |i|
      expect(i).to eq(expected)
    end
  end
  failure_message_for_should do |actual|
    "expected that all elements in #{actual} list would be equals #{expected}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cs-webautomator-0.1.5 lib/skeleton/features/support/matchers/custom.rb
cs-webautomator-0.1.4 lib/skeleton/features/support/matchers/custom.rb