Module: JsonSpec::Matchers

Defined in:
lib/json_spec/matchers.rb,
lib/json_spec/matchers/be_json_eql.rb,
lib/json_spec/matchers/include_json.rb,
lib/json_spec/matchers/have_json_path.rb,
lib/json_spec/matchers/have_json_size.rb,
lib/json_spec/matchers/have_json_type.rb

Defined Under Namespace

Classes: BeJsonEql, HaveJsonPath, HaveJsonSize, HaveJsonType, IncludeJson

Instance Method Summary collapse

Instance Method Details

#be_json_eql(json = nil) ⇒ Object



9
10
11
# File 'lib/json_spec/matchers.rb', line 9

def be_json_eql(json = nil)
  JsonSpec::Matchers::BeJsonEql.new(json)
end

#have_json_path(path) ⇒ Object



17
18
19
# File 'lib/json_spec/matchers.rb', line 17

def have_json_path(path)
  JsonSpec::Matchers::HaveJsonPath.new(path)
end

#have_json_size(size) ⇒ Object



25
26
27
# File 'lib/json_spec/matchers.rb', line 25

def have_json_size(size)
  JsonSpec::Matchers::HaveJsonSize.new(size)
end

#have_json_type(type) ⇒ Object



21
22
23
# File 'lib/json_spec/matchers.rb', line 21

def have_json_type(type)
  JsonSpec::Matchers::HaveJsonType.new(type)
end

#include_json(json = nil) ⇒ Object



13
14
15
# File 'lib/json_spec/matchers.rb', line 13

def include_json(json = nil)
  JsonSpec::Matchers::IncludeJson.new(json)
end