itsterry
2010-Dec-01 00:13 UTC
[rspec-users] Rspec2 - Absolutely brilliant! (at breaking stuff) - Is there a downgrade path ?
Just installed Rspec2 and noticed an immediate improvement in speed: it broke all 899 passing tests on an important project in a matter of seconds. Sadly, I don''t have the time to work my way through the multitude upgrade errors (it''s not just one error repeated), so I tried to remove rspec2 and the new rspec-rails and downgrade to the previous version. It didn''t work, and I''m still getting the following message when I autospec: ************************************************************ REMOVAL NOTICE: you are using behaviour that has been removed from rspec-2. * The ''autospec'' command is no longer supported. * Please use ''autotest'' insted. This message will be removed from a future version of rspec. ************************************************************ Running autotest rather than autospec gives the following: Autotest style autotest/rails_rspec2 doesn''t seem to exist. Aborting. I''m proud to be a good little BDD developer: I just don''t need an upgrade to give me headaches right now, so.... Does anyone have any idea how to get back to a previous Rspec version so I can work properly again? (Not saying Rspec2 isn''t fantastic. I''m sure it is. I''ll try to make it work again over the Xmas break, when I have lots of hours free)
Rob Aldred
2010-Dec-01 00:39 UTC
[rspec-users] Rspec2 - Absolutely brilliant! (at breaking stuff) - Is there a downgrade path ?
maybe just being stupid here but surely your using git or some sort of scm? stash your progress with rspec 2 in another branch then reset your current branch.. $ git reset --hard <sha-before-rspec2> On 1 December 2010 00:13, itsterry <itsterry at gmail.com> wrote:> Just installed Rspec2 and noticed an immediate improvement in speed: > it broke all 899 passing tests on an important project in a matter of > seconds. > > Sadly, I don''t have the time to work my way through the multitude > upgrade errors (it''s not just one error repeated), so I tried to > remove rspec2 and the new rspec-rails and downgrade to the previous > version. > > It didn''t work, and I''m still getting the following message when I > autospec: > > ************************************************************ > REMOVAL NOTICE: you are using behaviour that has been > removed from rspec-2. > > * The ''autospec'' command is no longer supported. > * Please use ''autotest'' insted. > > This message will be removed from a future version of rspec. > ************************************************************ > > Running autotest rather than autospec gives the following: > > Autotest style autotest/rails_rspec2 doesn''t seem to exist. Aborting. > > > I''m proud to be a good little BDD developer: I just don''t need an > upgrade to give me headaches right now, so.... > > Does anyone have any idea how to get back to a previous Rspec version > so I can work properly again? > > > (Not saying Rspec2 isn''t fantastic. I''m sure it is. I''ll try to make > it work again over the Xmas break, when I have lots of hours free) > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Kaoru Kobo
2010-Dec-02 05:46 UTC
[rspec-users] Rspec2 - Absolutely brilliant! (at breaking stuff) - Is there a downgrade path ?
You can uninstall RSpec2 by: gem uninstall -v ''>= 2.0.0'' rspec So RSpec-1 will be automatically activated. If you did ''gem cleanup'', you can re-install RSpec-1 by: gem install -v ''< 2.0.0'' rspec ---- Antoher way, you can specify which version of RSpec to be used in your code. (If you don''t use ''spec'' command to launch test) Change: gem "rspec" to gem "rspec", "< 2.0.0" Best Regards. -- Kaoru Kobo http://rubygems.org/profiles/kaorukobo On 2010/12/01, at 9:13, itsterry wrote:> Just installed Rspec2 and noticed an immediate improvement in speed: > it broke all 899 passing tests on an important project in a matter of > seconds. > > Sadly, I don''t have the time to work my way through the multitude > upgrade errors (it''s not just one error repeated), so I tried to > remove rspec2 and the new rspec-rails and downgrade to the previous > version. > > It didn''t work, and I''m still getting the following message when I > autospec: > > ************************************************************ > REMOVAL NOTICE: you are using behaviour that has been > removed from rspec-2. > > * The ''autospec'' command is no longer supported. > * Please use ''autotest'' insted. > > This message will be removed from a future version of rspec. > ************************************************************ > > Running autotest rather than autospec gives the following: > > Autotest style autotest/rails_rspec2 doesn''t seem to exist. Aborting. > > > I''m proud to be a good little BDD developer: I just don''t need an > upgrade to give me headaches right now, so.... > > Does anyone have any idea how to get back to a previous Rspec version > so I can work properly again? > > > (Not saying Rspec2 isn''t fantastic. I''m sure it is. I''ll try to make > it work again over the Xmas break, when I have lots of hours free) > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Kurt
2011-Feb-01 22:39 UTC
[rspec-users] Rspec2 - Absolutely brilliant! (at breaking stuff) - Is there a downgrade path ?
When you''re ready to try RSpec2 again, checkout this cheat sheet of changes from RSpec1. http://snyderscribbles.blogspot.com/2011/01/rspec-2-changes-from-rspec-1.html We''re adding to the list as people discover more... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110201/ee7036f8/attachment.html>