Skip to content

Commit

Permalink
Merge pull request #29 from PopularPays/support/rails_7
Browse files Browse the repository at this point in the history
 Bump ActiveSupport to 7.0
  • Loading branch information
bogderp authored Aug 31, 2023
2 parents 140cae6 + dcf4dd9 commit 3a7ad31
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1.152.0
with:
ruby-version: 2.6
bundler: 2.1.4
ruby-version: 3.1.4
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Run tests
Expand Down
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions jsonapi-matchers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "activesupport", ">= 4.0", "< 7"
spec.required_ruby_version = ">= 2.7.8"

spec.add_dependency "activesupport", ">= 4.0", "< 7.1"
spec.add_dependency "awesome_print"

spec.add_development_dependency "bump", "~> 0.9.0"
spec.add_development_dependency "bundler", "~> 2.1.4"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "pry"
Expand Down
2 changes: 1 addition & 1 deletion lib/jsonapi/matchers/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Jsonapi
module Matchers
VERSION = "1.0.2"
VERSION = "1.1.0"
end
end
6 changes: 5 additions & 1 deletion spec/jsonapi/record_included_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@
let(:subject) { have_record(record) }
let(:response) { ActionDispatch::TestResponse.new(response_data) }
let(:response_data) { '{' }
let(:architecture) { `uname -m`.strip }
let(:arm_expectation) { /Expected response to be json string but was \"{\". JSON::ParserError - unexpected token at '{'/ }
let(:linux_expectation) { /Expected response to be json string but was \"{\". JSON::ParserError - \d\d\d: unexpected token at '{'/ }

before do
subject.matches?(response)
end

it 'tells you that the response body is not json' do
expect(subject.failure_message).to match(/Expected response to be json string but was \"{\". JSON::ParserError - \d\d\d: unexpected token at '{'/)
expectation = architecture == 'arm64' ? arm_expectation : linux_expectation
expect(subject.failure_message).to match(expectation)
end
end

Expand Down

0 comments on commit 3a7ad31

Please sign in to comment.