We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0605a29 commit 78c0ee9Copy full SHA for 78c0ee9
spec/railtie_spec.rb
@@ -0,0 +1,11 @@
1
+require 'rails_helper'
2
+
3
+describe JSONAPI::Rails::Railtie do
4
+ it 'registers the JSON API MIME type' do
5
+ expect(Mime[:jsonapi]).to eq('application/vnd.api+json')
6
+ end
7
8
+ it 'registers the params parser for the JSON API MIME type' do
9
+ expect(::ActionDispatch::Request.parameter_parsers[:jsonapi]).not_to be_nil
10
11
+end
0 commit comments