GitXplorerGitXplorer
j

eq_wo_order

public
8 stars
3 forks
1 issues

Commits

List of commits on branch master.
Unverified
d138a14b9fdfea6747d5b6a43bbd9a779d20afb5

Added diffable macro per @dugancathol suggestion

jjeanbza committed 9 years ago
Unverified
9a8d82b9e8bba10649a99f83fc22e48550dc0464

README upgrade for why and how

jjeanbza committed 9 years ago
Unverified
c7529ad3918cad6153c077fd040e0469bff4bfbe

Version bump for @jacobsimeon change

jjeanbza committed 9 years ago
Unverified
1266cda4426bf4ebb0afd68385f5c51d918e5a8c

Merge pull request #4 from jacobsimeon/master

jjeanbza committed 9 years ago
Unverified
e1ce9f4a2aee9f175b5a1c44e256eb2abb88f5f4

Rely on Enumerable#any? & #all? and use recursion

jjacobsimeon committed 9 years ago
Unverified
cfb40eb5312908012048ad1b7e6e2d31f33d0800

Merge pull request #3 from jacobsimeon/master

jjeanbza committed 9 years ago

README

The README file for this repository.

EqWoOrder

Build Status

RSpec equality matcher that deeply compares array without order - arrays of primitives, hashes, and arrays.

As multi-core/multi-threaded concurrent processing becomes more prevalent we will see lists of items being returned in non-deterministic order. The idea behind this gem is that we when we're testing APIs that return objects with these arrays of items, we neither want to care about the order NOR do we want to dig into the data to sort/match specific fields. See spec/features/eq_wo_order_spec.rb for an extensive set of examples showcasing this gem's usage.

Installation

Add this line to your application's Gemfile:

gem 'eq_wo_order'

And then execute:

$ bundle

Or install it yourself as:

$ gem install eq_wo_order

Usage

require 'eq_wo_order'

first = [[1, 2, 3]]
second = [[3, 1, 2]]

expect(first).to eq_wo_order second

Contributing

  1. Fork it ( https://github.com/[my-github-username]/eq_wo_order/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request