Skip to content

Commit 78c0ee9

Browse files
committed
Add spec for the railtie.
1 parent 0605a29 commit 78c0ee9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spec/railtie_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
end
11+
end

0 commit comments

Comments
 (0)