Sha256: 499a19b78f337996551c25d67f9b54e20b7e82c7bd8a375f449588c28ea8b79b
Contents?: true
Size: 766 Bytes
Versions: 9
Compression:
Stored size: 766 Bytes
Contents
require "json_spec/matchers/be_json_eql" require "json_spec/matchers/include_json" require "json_spec/matchers/have_json_path" require "json_spec/matchers/have_json_type" require "json_spec/matchers/have_json_size" module JsonSpec module Matchers def be_json_eql(json = nil) JsonSpec::Matchers::BeJsonEql.new(json) end def include_json(json = nil) JsonSpec::Matchers::IncludeJson.new(json) end def have_json_path(path) JsonSpec::Matchers::HaveJsonPath.new(path) end def have_json_type(type) JsonSpec::Matchers::HaveJsonType.new(type) end def have_json_size(size) JsonSpec::Matchers::HaveJsonSize.new(size) end end end RSpec.configure do |config| config.include JsonSpec::Matchers end
Version data entries
9 entries across 9 versions & 1 rubygems