Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test ruby 3.4, rails 8 #260

Merged
merged 1 commit into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## HEAD

- Add tests for rails 8, ruby 3.4

## 2.2.1

- `get_process_mem` version requirements relaxed (https://github.com/zombocom/derailed_benchmarks/pull/252)
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
Loading