module JsonSpec::Matchers
Public Instance Methods
be_json_eql(json = nil)
click to toggle source
# File lib/json_spec/matchers.rb, line 9 def be_json_eql(json = nil) JsonSpec::Matchers::BeJsonEql.new(json) end
have_json_path(path)
click to toggle source
# File lib/json_spec/matchers.rb, line 17 def have_json_path(path) JsonSpec::Matchers::HaveJsonPath.new(path) end
have_json_size(size)
click to toggle source
# File lib/json_spec/matchers.rb, line 25 def have_json_size(size) JsonSpec::Matchers::HaveJsonSize.new(size) end
have_json_type(type)
click to toggle source
# File lib/json_spec/matchers.rb, line 21 def have_json_type(type) JsonSpec::Matchers::HaveJsonType.new(type) end
include_json(json = nil)
click to toggle source
# File lib/json_spec/matchers.rb, line 13 def include_json(json = nil) JsonSpec::Matchers::IncludeJson.new(json) end