Module: JsonSpec::Matchers
- Defined in:
- lib/json_spec/matchers.rb
Defined Under Namespace
Classes: BeJsonEql, HaveJsonPath, HaveJsonSize, HaveJsonType, IncludeJson
Instance Method Summary collapse
- #be_json_eql(json) ⇒ Object
- #have_json_path(path) ⇒ Object
- #have_json_size(size) ⇒ Object
- #have_json_type(klass) ⇒ Object
- #include_json(json) ⇒ Object
Instance Method Details
#be_json_eql(json) ⇒ Object
218 219 220 |
# File 'lib/json_spec/matchers.rb', line 218 def be_json_eql(json) JsonSpec::Matchers::BeJsonEql.new(json) end |
#have_json_path(path) ⇒ Object
226 227 228 |
# File 'lib/json_spec/matchers.rb', line 226 def have_json_path(path) JsonSpec::Matchers::HaveJsonPath.new(path) end |
#have_json_size(size) ⇒ Object
234 235 236 |
# File 'lib/json_spec/matchers.rb', line 234 def have_json_size(size) JsonSpec::Matchers::HaveJsonSize.new(size) end |
#have_json_type(klass) ⇒ Object
230 231 232 |
# File 'lib/json_spec/matchers.rb', line 230 def have_json_type(klass) JsonSpec::Matchers::HaveJsonType.new(klass) end |
#include_json(json) ⇒ Object
222 223 224 |
# File 'lib/json_spec/matchers.rb', line 222 def include_json(json) JsonSpec::Matchers::IncludeJson.new(json) end |