Skip to content

Commit

Permalink
Update AR spec
Browse files Browse the repository at this point in the history
  • Loading branch information
HarlemSquirrel committed Dec 18, 2024
1 parent 2d4f8c1 commit 0a65c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ext/active_record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class SubUser < User {
out = @ap.awesome(User.methods.grep(/primary_key/))
if RUBY_PLATFORM == 'java'
expect(out).to match(
/\sprimary_key\(.*?\)\s+#<Class:\w+>\s\(ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods\)/
/\sprimary_key\(\)\s+#</
)
elsif Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0')
expect(out).to match(/\sprimary_key\(.*?\)\s+#<Class:User> \(ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods\)/)
Expand Down

0 comments on commit 0a65c02

Please sign in to comment.