Created
March 30, 2012 09:20
-
-
Save ayamomiji/2250253 to your computer and use it in GitHub Desktop.
RAILS SUCKS
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 :be_json do |expected| | |
match do |actual| | |
acturl_json = | |
ActiveSupport::JSON.decode(ActiveSupport::JSON.encode(actual)) | |
expected_json = | |
ActiveSupport::JSON.decode(ActiveSupport::JSON.encode(expected)) | |
acturl_json == expected_json | |
end | |
diffable | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment