-
-
Save ianks/ff242b3d3cf8ad6069a165c2e4ead983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec::Matchers.define :have_same_elements_as do |sample| | |
match do |actual| | |
similar?(sample, actual) | |
end | |
def similar?(a, b) | |
a.sort == b.sort | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment