-
-
Notifications
You must be signed in to change notification settings - Fork 909
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
DEPRECATION WARNING: #tables currently returns both tables and views. #933
Comments
+1 |
+1 |
2 similar comments
+1 |
+1 |
Fix #tables deprecation in Rails 5.0 - Fixes #933
Was this fixed in 15fe030? Will this fix be released in a new version? |
Yes. The original PR was merged yesterday. gem 'shoulda-matchers', git: 'https://github.com/thoughtbot/shoulda-matchers.git', branch: 'rails-5' |
Fixed by #943 |
@guialbuk is there anything we can do to contribute to the |
Hi, @jademcgough . |
…ning See issue here: thoughtbot/shoulda-matchers#933 See fix here: thoughtbot/shoulda-matchers#943 DEPRECATION WARNING: #tables currently returns both tables and views. This behavior is deprecated and will be changed with Rails 5.1 to only return tables. Use #data_sources instead.
Hi guys. Question about this. I was originally including just the shoulda gem: Then I upgraded to Rails 5.0 and I got the deprecation warning from shoulda-matchers. So, since shoulda says it doesn't have any code of its own, it's just shoulda-context + shoulda-matchers, I thought I could just replace that one gem statement with two: gem 'shoulda-context' My tests fail when I do this because it seems there really is stuff in the shoulda gem. At least it seems my app does stuff that relies on the shoulda gem. Including all three gems also causes problems. Maybe I am doing something wrong, but is there a preferred way for me to use the main shoulda, the main shoulda-context but the Rails 5 branch of shoulda-matchers? |
Hey @jasonperrone, I'm assuming you're using Minitest, is that true? If that's true... |
Understood. For now I am going to just include the master branch of the shoulda gem. The only negative effect I see thus far are deprecation warnings, so I'll just keep my eye out for updates to the main branch. Thanks! |
…ning See issue here: thoughtbot/shoulda-matchers#933 See fix here: thoughtbot/shoulda-matchers#943 DEPRECATION WARNING: #tables currently returns both tables and views. This behavior is deprecated and will be changed with Rails 5.1 to only return tables. Use #data_sources instead.
With a spec
it { is_expected.to have_and_belong_to_many :teams }
The following deprecation warning is issued with Rails 5.0.0.RC1
The text was updated successfully, but these errors were encountered: