Skip to content

Commit

Permalink
jsonapi-rspec gem for bettr specs added
Browse files Browse the repository at this point in the history
  • Loading branch information
alex223125 committed Sep 14, 2022
1 parent bcafc97 commit c18912c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ group :development, :test do
gem 'pry', '~> 0.13.1'
gem 'rspec-rails', '~> 4.0.2'
gem 'factory_bot_rails', '~> 6.1.0'
gem 'jsonapi-rspec', '~> 0.0.9'
end

group :development do
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ GEM
activesupport (>= 4.2.0)
i18n (1.8.8)
concurrent-ruby (~> 1.0)
jsonapi-rspec (0.0.11)
rspec-core
rspec-expectations
jsonapi-serializer (2.1.0)
activesupport (>= 4.2)
jsonapi.rb (1.6.0)
Expand Down Expand Up @@ -198,6 +201,7 @@ DEPENDENCIES
bootsnap (>= 1.4.4)
byebug
factory_bot_rails (~> 6.1.0)
jsonapi-rspec (~> 0.0.9)
jsonapi.rb
jwt
listen (~> 3.3)
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
require 'support/request_spec_helper'
require 'jsonapi/rspec'

RSpec.configure do |config|
config.include RequestSpecHelper
config.include JSONAPI::RSpec
config.jsonapi_indifferent_hash = true

# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest
Expand Down

0 comments on commit c18912c

Please sign in to comment.