-
Notifications
You must be signed in to change notification settings - Fork 64
Improve specs #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve specs #33
Conversation
@@ -0,0 +1,11 @@ | |||
require 'rails_helper' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing magic comment # frozen_string_literal: true.
spec/action_controller_spec.rb
Outdated
it 'exposes the deserialization mapping via the jsonapi_pointers method' do | ||
pointers = { id: '/data/id', type: '/data/type' } | ||
describe ActionController::Base, type: :controller do | ||
context 'when specifying a deserializable resource' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block has too many lines. [28/25]
spec/action_controller_spec.rb
Outdated
RSpec.describe ActionController::Base do | ||
it 'exposes the deserialization mapping via the jsonapi_pointers method' do | ||
pointers = { id: '/data/id', type: '/data/type' } | ||
describe ActionController::Base, type: :controller do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block has too many lines. [30/25]
spec/action_controller_spec.rb
Outdated
'data' => { | ||
'id' => '1', | ||
'type' => 'users', | ||
'attributes' => { 'name' => 'Lucas' } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing hash brace must be on the line after the last hash element when opening brace is on a separate line from the first hash element.
env: { | ||
JSONAPI::Rails::ActionController::JSONAPI_POINTERS_KEY => pointers | ||
describe ActionController::Base, type: :controller do | ||
describe '.deserializable_resource' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block has too many lines. [28/25]
OpenStruct.new( | ||
env: { | ||
JSONAPI::Rails::ActionController::JSONAPI_POINTERS_KEY => pointers | ||
describe ActionController::Base, type: :controller do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block has too many lines. [56/25]
OpenStruct.new( | ||
env: { | ||
JSONAPI::Rails::ActionController::JSONAPI_POINTERS_KEY => pointers | ||
describe ActionController::Base, type: :controller do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block has too many lines. [57/25]
* upstream/master: Improve specs (jsonapi-rb#33) Expose deserialization reverse mapping in controllers (jsonapi-rb#29) Update jsonapi-rb to v0.2.1. (jsonapi-rb#32) Add dummy app temp files to .gitignore (jsonapi-rb#30) Deal with jsonapi-serializable no longer calling to_json (jsonapi-rb#26)
No description provided.