module RSpec::Oj::Matchers

Public Instance Methods

be_json_eql(json = nil) click to toggle source
# File lib/rspec/oj/matchers.rb, line 12
def be_json_eql(json = nil)
  RSpec::Oj::Matchers::BeJsonEql.new(json)
end
have_json_path(path) click to toggle source
# File lib/rspec/oj/matchers.rb, line 20
def have_json_path(path) # rubocop:disable Naming/PredicateName
  RSpec::Oj::Matchers::HaveJsonPath.new(path)
end
have_json_size(size) click to toggle source
# File lib/rspec/oj/matchers.rb, line 28
def have_json_size(size) # rubocop:disable Naming/PredicateName
  RSpec::Oj::Matchers::HaveJsonSize.new(size)
end
have_json_type(type) click to toggle source
# File lib/rspec/oj/matchers.rb, line 24
def have_json_type(type) # rubocop:disable Naming/PredicateName
  RSpec::Oj::Matchers::HaveJsonType.new(type)
end
include_json(json = nil) click to toggle source
# File lib/rspec/oj/matchers.rb, line 16
def include_json(json = nil)
  RSpec::Oj::Matchers::IncludeJson.new(json)
end