Sha256: 4cdf1c419cb03f4936df9ea682991ccc483c120962cc1acfd97747660ac77775

Contents?: true

Size: 206 Bytes

Versions: 10

Compression:

Stored size: 206 Bytes

Contents

# "{'foo': 'bar'}".should match_json {:foo => :bar}
RSpec::Matchers.define :match_json do |expected|
  match do |actual|
    ActiveSupport::JSON.decode(actual) == expected.with_indifferent_access
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
brycesch-devise_oauth2_providable-1.2.8 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.2.7 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.2.6 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.2.5 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.2.4 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.2.3 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.2.2 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.2.1 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.2.0 spec/support/match_json.rb
brycesch-devise_oauth2_providable-1.1.7 spec/support/match_json.rb