Skip to content

Commit

Permalink
JRuby: target Rails 7+ for base unit tests
Browse files Browse the repository at this point in the history
- Have JRuby test with Rails 7
- Use `::` prefix with the `Bloodhound` class
  • Loading branch information
fallwith committed Nov 20, 2023
1 parent 16e766f commit 0c1ca75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
timeout_minutes: 30
max_attempts: 2
command: bundle exec rake test:env[norails,rails61,rails60]
command: bundle exec rake test:env[norails,rails70]
env:
VERBOSE_TEST_OUTPUT: true
DB_PORT: ${{ job.services.mysql.ports[3306] }}
Expand Down
2 changes: 1 addition & 1 deletion test/environments/rails70/config/initializers/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

require 'new_relic/agent/method_tracer'

class Bloodhound < ActiveRecord::Base
class ::Bloodhound < ActiveRecord::Base
include ::NewRelic::Agent::MethodTracer

def sniff
Expand Down

0 comments on commit 0c1ca75

Please sign in to comment.