Method: MediaTypes::Scheme#assert_pass
- Defined in:
- lib/media_types/scheme.rb
#assert_pass(fixture) ⇒ Object
387 388 389 390 391 |
# File 'lib/media_types/scheme.rb', line 387 def assert_pass(fixture) json = JSON.parse(fixture, { symbolize_names: true }) validate(json) end |