Closed bodrovis closed 9 years ago
This looks good, but let's comment on each file what we changed next time -- I had to read up that the reason you removed require 'rspec/autorun'
was that it gives the depreciation messages (you mention it in the second sentence of your description, but not where that impacted).
It also looks like you ran bundle update
as well, because while some gems will install as dependancies the highest gem level they can download (which is why versioning is important), things like Devise should not have been updated just by doing a fresh install -- Gemfile.lock ensures that top level gems without dependancies in other areas aren't updated unless you ran bundle update
.
That means that a ton of other gems were updated at the same time as well, which isn't necessarily a bad thing, but if something fails down the road we won't know if it was because of a gem being updated, because of something in this commit fixed, etc. Better to update the gems not directly related to the task at hand here in another branch so we can always revert just that part of it without reverting the rspec changes as well.
@scouttyg Okay, will redo that!
@scouttyg Done, I've brought back the original lock and updated only gems related to rspec (like expectations, mocks, core and guard).
P.S. The phantomjs error was indeed realted to my environment, fixed that.
Great! Thanks for going back and doing this. Looks like pulling in the rails 3.2.21 probably made some conflicts, lets fix those and we can pull this in.
That should do the trick
:+1:
As long as rspec-rails is not locked at any version, 3.1 is used. Therefore deprecation warnings (and errors) are showed in the console when running tests. Specifically,
be_true
is not longer a valid method - it either should bebe_truthy
orbe true
for a strict match, the same applies tobe_false
. This PR removes most of them (there are a couple more but they are related to CanCan itself).Also please note that two tests are failing (
/spec/features/login_spec.rb
, lines 9 and 16) with the message "Could not find an executable ["phantomjs"] on your path." - it was already failing before I made any changes.