File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 2.6.9
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def self.add_errors_renderer!
4747 ) unless resource . is_a? ( ActiveModel ::Errors )
4848
4949 errors = [ ]
50- model = resource . instance_variable_get ( ' @base' )
50+ model = resource . instance_variable_get ( : @base)
5151
5252 if respond_to? ( :jsonapi_serializer_class , true )
5353 model_serializer = jsonapi_serializer_class ( model , false )
Original file line number Diff line number Diff line change 3131
3232 it do
3333 expect ( response ) . to have_http_status ( :unprocessable_entity )
34- expect ( response . media_type ) . to eq ( " application/vnd.api+json" )
34+ expect ( response . media_type ) . to eq ( ' application/vnd.api+json' )
3535 expect ( response_json [ 'errors' ] . size ) . to eq ( 1 )
3636 expect ( response_json [ 'errors' ] [ 0 ] [ 'status' ] ) . to eq ( '422' )
3737 expect ( response_json [ 'errors' ] [ 0 ] [ 'title' ] )
Original file line number Diff line number Diff line change 2525 it do
2626 expect ( response ) . to have_http_status ( :ok )
2727 expect ( response_json [ 'data' ] . size ) . to eq ( users . size )
28- expect ( response . media_type ) . to eq ( " application/vnd.api+json" )
28+ expect ( response . media_type ) . to eq ( ' application/vnd.api+json' )
2929
3030 response_json [ 'data' ] . each do |item |
3131 user = users . detect { |u | u . id == item [ 'id' ] . to_i }
You can’t perform that action at this time.
0 commit comments