Sha256: b407fc4a3d531f91d45035c2e88b489ebf21599b8ff6ce26bdd48b25a209e6cf

Contents?: true

Size: 245 Bytes

Versions: 18

Compression:

Stored size: 245 Bytes

Contents

RSpec::Matchers.define(:be_array_eql) do |other_arr|
  diffable
  if RUBY_VERSION < '1.9'
    match do |obj|
      obj.sort_by(&:inspect) == other_arr.sort_by(&:inspect)
    end
  else
    match do |obj|
      obj == other_arr
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gorillib-0.6.0 spec/support/matchers/be_array_eql.rb
gorillib-0.5.2 spec/support/matchers/be_array_eql.rb
gorillib-0.5.0 spec/support/matchers/be_array_eql.rb
gorillib-0.4.2 spec/support/matchers/be_array_eql.rb
gorillib-0.4.2pre spec/support/matchers/be_array_eql.rb
gorillib-0.4.0pre spec/support/matchers/be_array_eql.rb
gorillib-0.4.1pre spec/support/matchers/be_array_eql.rb
gorillib-0.1.11 spec/support/matchers/be_array_eql.rb
gorillib-0.1.9 spec/support/matchers/be_array_eql.rb
gorillib-0.1.8 spec/support/matchers/be_array_eql.rb
gorillib-0.1.7 spec/support/matchers/be_array_eql.rb
gorillib-0.1.6 spec/support/matchers/be_array_eql.rb
gorillib-0.1.5 spec/support/matchers/be_array_eql.rb
gorillib-0.1.4 spec/support/matchers/be_array_eql.rb
gorillib-0.1.3 spec/support/matchers/be_array_eql.rb
gorillib-0.1.2 spec/support/matchers/be_array_eql.rb
gorillib-0.1.1 spec/support/matchers/be_array_eql.rb
gorillib-0.1.0 spec/support/matchers/be_array_eql.rb