I would try to complete the project using "rspec-rails", "~> 2.14" as suggested.
Once you finish the tutorial, you can use transpec, a gem that will update your tests for compatibility with rspec3.
https://github.com/yujinakayama/transpec
Install the gem and update the project> gemfile to "rspec-rails", "~> 3.1.0" and run transpec in the project.
This should update all your tests.
I think this is what your test should look like using rspec 3
describe "#current_user" do before do @user = FactoryGirl.create :user request.headers["Authorization"] = @user.auth_token allow(authentication).to receive(:request).and_return(request) end it "returns the user from the authorization header" do expect(authentication.current_user.auth_token).to eql @user.auth_token end end
hope this helps.
Jereth cormack
source share