Closed Rio517 closed 9 years ago
Thanks for digging into this @Rio517. I'll see how easy it is to fix this so it works with rspec 2.x as well as 3.x.
@Rio517 I've pushed up a fix for this and verified it locally. Care to take it for a spin to see if it works for you too? In your Gemfile:
gem 'versionist', :git => 'https://github.com/bploetz/versionist.git', :branch => 'fix/issue70'
Then bundle install
.
Works for me! :)
Cool thanks. I'll clean up the duplication you mentioned before merging to master and releasing a fix.
versionist 1.4.1 has been released with this fix. Thanks.
Rspec 3 generally replaces requiring
spec_helper.rb
w/rails_helper.rb
see - more here. The current versionist generator addsrequire 'spec_helper'
, which gives a confusing error that was highlighted in https://github.com/bploetz/versionist/issues/66, but was slightly misattributed.To reproduce the error run the following:
Since
require 'spec_helper'
in rspec 3 no longer loads rails, you'll get an error message along the lines of:A solution might be to check the rspec version, use
spec helper
for 2.x andrails_helper
for 3.x.If no one beats me to it, I'll submit a pull request in several weeks. Just wanted to open the issue in case it trips anyone else up.