rails-sqlserver / activerecord-sqlserver-adapter

SQL Server Adapter For Rails
MIT License
974 stars 563 forks source link

Fix for PredicateBuilderTest #1239

Closed aidanharan closed 1 month ago

aidanharan commented 1 month ago

Fix for PredicateBuilderTest. Not sure why tests suddenly failing.

https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/actions/runs/11208481488/job/31152221363

  1) Error:
ActiveRecord::PredicateBuilderTest#test_registering_new_handlers_for_association_coerced:
NameError: undefined local variable or method `topic_title' for an instance of ActiveRecord::PredicateBuilderTest
    /usr/local/bundle/bundler/gems/rails-967c33d493e5/activerecord/lib/active_record/test_fixtures.rb:280:in `method_missing'
    test/cases/coerced_tests.rb:1341:in `test_registering_new_handlers_for_association_coerced'

  2) Error:
ActiveRecord::PredicateBuilderTest#test_registering_new_handlers_coerced:
NameError: undefined local variable or method `topic_title' for an instance of ActiveRecord::PredicateBuilderTest
    /usr/local/bundle/bundler/gems/rails-967c33d493e5/activerecord/lib/active_record/test_fixtures.rb:280:in `method_missing'
    test/cases/coerced_tests.rb:1335:in `test_registering_new_handlers_coerced'