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

Fix test bad connection test #1170

Merged
merged 2 commits into from
May 13, 2024
Merged

Fix test bad connection test #1170

merged 2 commits into from
May 13, 2024

Conversation

aidanharan
Copy link
Contributor

@aidanharan aidanharan commented May 13, 2024

Fixes:

https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/actions/runs/9033092031/job/24822623240

AdapterTestSQLServer#test_0010_test bad connection [/activerecord-sqlserver-adapter/test/cases/adapter_test_sqlserver.rb:102]:
[ActiveRecord::NoDatabaseError] exception expected, not
Class: <NoMethodError>
Message: <"undefined method `sqlserver_connection' for class ActiveRecord::Base">
---Backtrace---
/usr/local/bundle/bundler/gems/rails-2744b74216e5/activerecord/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/activerecord-sqlserver-adapter/test/cases/adapter_test_sqlserver.rb:106:in `block (2 levels) in <class:AdapterTestSQLServer>'

@aidanharan aidanharan marked this pull request as ready for review May 13, 2024 10:17
@aidanharan aidanharan merged commit b6257ad into main May 13, 2024
2 of 8 checks passed
@aidanharan aidanharan deleted the test-bad-connection branch May 13, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant