Module: Graphiti::SpecHelpers::Sugar
- Defined in:
- lib/graphiti/spec_helpers.rb
Instance Method Summary collapse
- #d ⇒ Object
- #date(*args) ⇒ Object
- #datetime(*args) ⇒ Object
- #dt(*args) ⇒ Object
- #errors ⇒ Object
- #included(type = nil) ⇒ Object
Instance Method Details
#d ⇒ Object
28 29 30 |
# File 'lib/graphiti/spec_helpers.rb', line 28 def d jsonapi_data end |
#date(*args) ⇒ Object
48 49 50 |
# File 'lib/graphiti/spec_helpers.rb', line 48 def date(*args) json_date(*args) end |
#datetime(*args) ⇒ Object
44 45 46 |
# File 'lib/graphiti/spec_helpers.rb', line 44 def datetime(*args) json_datetime(*args) end |
#dt(*args) ⇒ Object
40 41 42 |
# File 'lib/graphiti/spec_helpers.rb', line 40 def dt(*args) json_datetime(*args) end |
#errors ⇒ Object
36 37 38 |
# File 'lib/graphiti/spec_helpers.rb', line 36 def errors jsonapi_errors end |
#included(type = nil) ⇒ Object
32 33 34 |
# File 'lib/graphiti/spec_helpers.rb', line 32 def included(type = nil) jsonapi_included(type) end |