Reputation: 111
I have Rspec 2.14.7 but I have a test suite that uses functionality from Rspec 3.x. What is the easiest way to upgrade to 3.x?
I have checked the upgrade docs at RSpec website, but the screencasts don't make any sense to me. I've tried the commands it gives me error on bash shell. (http://rspec.info/upgrading-from-rspec-2/)
Upvotes: 0
Views: 54
Reputation: 13122
This is the recipe:
gem "rspec", "~> 2.99"
bundle install
gem "rspec", "~> 3.0"
Done.
There is also Transpec. Use it!
Upvotes: 1