Module: Graphiti::SpecHelpers::Sugar
- Defined in:
- lib/graphiti/spec_helpers.rb
Class Method Summary collapse
Instance Method Summary collapse
- #d ⇒ Object
- #date(*args) ⇒ Object
- #datetime(*args) ⇒ Object
- #dt(*args) ⇒ Object
- #errors ⇒ Object
- #included(type = nil) ⇒ Object
Class Method Details
.included(base) ⇒ Object
29 30 31 32 |
# File 'lib/graphiti/spec_helpers.rb', line 29 def self.included(base) Graphiti::DEPRECATOR.warn("Graphiti::SpecHelpers::Sugar is deprecated. Call jsonapi_data, jsonapi_included, jsonapi_errors, json_date and json_datetime directly.") super end |
Instance Method Details
#d ⇒ Object
34 35 36 |
# File 'lib/graphiti/spec_helpers.rb', line 34 def d jsonapi_data end |
#date(*args) ⇒ Object
54 55 56 |
# File 'lib/graphiti/spec_helpers.rb', line 54 def date(*args) json_date(*args) end |
#datetime(*args) ⇒ Object
50 51 52 |
# File 'lib/graphiti/spec_helpers.rb', line 50 def datetime(*args) json_datetime(*args) end |
#dt(*args) ⇒ Object
46 47 48 |
# File 'lib/graphiti/spec_helpers.rb', line 46 def dt(*args) json_datetime(*args) end |
#errors ⇒ Object
42 43 44 |
# File 'lib/graphiti/spec_helpers.rb', line 42 def errors jsonapi_errors end |
#included(type = nil) ⇒ Object
38 39 40 |
# File 'lib/graphiti/spec_helpers.rb', line 38 def included(type = nil) jsonapi_included(type) end |