Iconoclast
Iconoclast

Reputation: 111

What is the fastest / easiest way to Upgrade to Rspec 3.x

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

Answers (1)

Arturo Herrero
Arturo Herrero

Reputation: 13122

This is the recipe:

  • Be green and warning free on RSpec 2
  • gem "rspec", "~> 2.99"
  • bundle install
  • Fix warnings
  • gem "rspec", "~> 3.0"

Done.

There is also Transpec. Use it!

Upvotes: 1

Related Questions