Skip to content

Commit

Permalink
ruby 3.4, rails 8
Browse files Browse the repository at this point in the history
  • Loading branch information
pcai committed Jan 1, 2025
1 parent 897a2a9 commit 26cb657
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
gemfile: gemfiles/rails_7_1.gemfile
- ruby: "3.2"
gemfile: gemfiles/rails_7_2.gemfile
- ruby: "3.2"
gemfile: gemfiles/rails_8_0.gemfile
- ruby: "3.3"
gemfile: gemfiles/rails_6_0.gemfile
- ruby: "3.3"
Expand All @@ -75,6 +77,16 @@ jobs:
gemfile: gemfiles/rails_7_1.gemfile
- ruby: "3.3"
gemfile: gemfiles/rails_7_2.gemfile
- ruby: "3.3"
gemfile: gemfiles/rails_8_0.gemfile
- ruby: "3.4"
gemfile: gemfiles/rails_7_0.gemfile
- ruby: "3.4"
gemfile: gemfiles/rails_7_1.gemfile
- ruby: "3.4"
gemfile: gemfiles/rails_7_2.gemfile
- ruby: "3.4"
gemfile: gemfiles/rails_8_0.gemfile
- ruby: "head"
gemfile: gemfiles/rails_head.gemfile
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.gem
/test/rails_app/tmp/*
/test/rails_app/log/*
/test/rails_app/db/*
*.sqlite3

Gemfile.lock
Expand Down
2 changes: 1 addition & 1 deletion derailed_benchmarks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "webrick", ">= 0"
gem.add_development_dependency "capybara", "~> 2"
gem.add_development_dependency "m"
gem.add_development_dependency "rails", "> 3", "< 7.1"
gem.add_development_dependency "rails", "> 3", "< 8.1"
gem.add_development_dependency "devise", "> 3", "< 6"
end
13 changes: 13 additions & 0 deletions gemfiles/rails_8_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 8.0.0"

group :development, :test do
gem "sqlite3", '~> 2.1', platform: [:ruby, :mswin, :mingw]
gem "activerecord-jdbcsqlite3-adapter", "~> 1.3.13", platform: :jruby
gem "test-unit", "~> 3.0"
end

gemspec path: "../"
12 changes: 6 additions & 6 deletions test/integration/tasks_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ def rake(cmd, options = {})
}
result = rake "perf:test", env: env
assert_match 'Endpoint: "foo_secret"', result
assert_match (/"Authorization"=>"Basic YWRtaW46c2VjcmV0"/), result
assert_match (/"Cache-Control"=>"no-cache"/), result
assert_match (/"Authorization"\s?=>\s?"Basic YWRtaW46c2VjcmV0"/), result
assert_match (/"Cache-Control"\s?=>\s?"no-cache"/), result

env["USE_SERVER"] = "webrick"
result = rake "perf:test", env: env
assert_match (/"Authorization"=>"Basic YWRtaW46c2VjcmV0"/), result
assert_match (/"Cache-Control"=>"no-cache"/), result
assert_match (/"Authorization"\s?=>\s?"Basic YWRtaW46c2VjcmV0"/), result
assert_match (/"Cache-Control"\s?=>\s?"no-cache"/), result
end

test 'CONTENT_TYPE' do
Expand All @@ -147,12 +147,12 @@ def rake(cmd, options = {})

result = rake "perf:test", env: env
assert_match 'Body: {"user":{"email":"[email protected]","password":"123456","password_confirmation":"123456"}}', result
assert_match 'HTTP headers: {"Content-Type"=>"application/json"}', result
assert_match(/HTTP headers: {"Content-Type"\s?=>\s?"application\/json"}/, result)

env["USE_SERVER"] = "webrick"
result = rake "perf:test", env: env
assert_match 'Body: {"user":{"email":"[email protected]","password":"123456","password_confirmation":"123456"}}', result
assert_match 'HTTP headers: {"Content-Type"=>"application/json"}', result
assert_match(/HTTP headers: {"Content-Type"\s?=>\s?"application\/json"}/, result)
end

test 'REQUEST_METHOD and REQUEST_BODY' do
Expand Down

0 comments on commit 26cb657

Please sign in to comment.