2012-05-22 4 views
1

저는 Ruby 1.8.7에서 Rails 2.3.4 응용 프로그램을 실행하고 사용자 정의 gemset에서 rvm을 실행하고 있습니다.잘못된 버전 번호를 표시하는 Rspec

rspec을 실행하려고 할 때 rspec 2를 제거하고 rspec 및 rspec-rails 버전 1.3.4를 설치하기 위해 여러 번 시도했습니다. 그러나, 내가 rspec -v을 실행할 때 나는 내가하는 것에 관계없이 2.10.0을 얻는다.

마지막으로 나는이 오류 메시지가 있어요 :

You are running rspec-2, but it seems as though rspec-1 has been loaded as 
    well. This is likely due to a statement like this somewhere in the specs: 

     require 'spec' 

    Please locate that statement, remove it, and try again. 

을 그래서 2.10.0 실제로 여전히로드 것 같습니다. 심지어 내가 gem uninstall rspec rspec을하더라도 여전히로드됩니다. 무슨 일이야?

+1

"bundle exec rspec -v"는 어떻습니까? –

+0

번들러가 실행되지 않습니다. – James

답변

2

this answer에서 설명한대로 rspec 대신 spec (RSpec 1 실행 파일)을 사용해야합니다.

관련 문제