Skip to content
Newer
Older
100644 14 lines (11 sloc) 448 Bytes
e098dda @ryanb refactoring query.conditions
authored Jul 20, 2010
1 Spec::Matchers.define :orderlessly_match do |original_string|
2 match do |given_string|
3 original_string.bytes.sum == given_string.bytes.sum
4 end
5
6 failure_message_for_should do |given_string|
7 "expected \"#{given_string}\" to have the same characters as \"#{original_string}\""
8 end
9
10 failure_message_for_should_not do |given_string|
11 "expected \"#{given_string}\" not to have the same characters as \"#{original_string}\""
12 end
13 end
Something went wrong with that request. Please try again.