Sha256: a3b00c28bfd8d8fd233430a93996bd6aeb6a25da3a817927af60d31dddacf694

Contents?: true

Size: 366 Bytes

Versions: 5

Compression:

Stored size: 366 Bytes

Contents

require 'rspec/expectations'

## matcher to validate if all elements in list are equals
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

5 entries across 5 versions & 2 rubygems

Version Path
cs-webautomator-0.1.8.1 lib/skeleton/features/support/matchers/custom.rb
magneton-0.1.0 lib/skeleton/features/support/matchers/custom.rb
cs-webautomator-0.1.8 lib/skeleton/features/support/matchers/custom.rb
cs-webautomator-0.1.7 lib/skeleton/features/support/matchers/custom.rb
cs-webautomator-0.1.6 lib/skeleton/features/support/matchers/custom.rb