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

Specs broken against Rails 7.2.2 #953

Closed
1 task done
tagliala opened this issue Nov 8, 2024 · 2 comments
Closed
1 task done

Specs broken against Rails 7.2.2 #953

tagliala opened this issue Nov 8, 2024 · 2 comments

Comments

@tagliala
Copy link
Contributor

tagliala commented Nov 8, 2024

Steps to reproduce*

https://github.com/DavyJonesLocker/client_side_validations/actions/runs/11739315324/job/32703578245

Expected behavior*

Work

Actual behavior*

Error:
ActiveRecord::UniquenessValidatorTest#test_uniqueness_client_side_hash_with_empty_scope_array:
NoMethodError: undefined method `singleton_class?' for nil:NilClass
    vendor/bundle/ruby/3.2.0/gems/activerecord-7.2.2/lib/active_record/validations/uniqueness.rb:17:in `initialize'
    test/active_record/cases/test_uniqueness_validator.rb:71:in `new'
    test/active_record/cases/test_uniqueness_validator.rb:71:in `test_uniqueness_client_side_hash_with_empty_scope_array'

bin/rails test active_record/cases/test_uniqueness_validator.rb:69

System configuration*

Rails version: 7.2.2

Ruby version: 3.x

Client Side Validations version: main

Code snippet from your model of the validations*

n/a

The whole form code from your template*

n/a

The resulting HTML*

n/a

Browser's development console output*

  • I confirm that my browser's development console output does not contain errors

Additional JavaScript Libraries*

n/a

Repository demostrating the issue

this repo

@tagliala
Copy link
Contributor Author

tagliala commented Nov 8, 2024

@tagliala
Copy link
Contributor Author

Fixed in #952

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant