[rspec-users] require confusion
Pat Maddox
patmaddox at me.com
Wed Jan 19 01:28:58 EST 2011
Yeah 'spec/*' is RSpec 1.x and 'rspec/*' is RSpec 2.x. The stuff you're seeing on the web is referring to RSpec 1.x.
On Jan 18, 2011, at 9:44 PM, Katrina Owen wrote:
> That sounds suspiciously like something on your system thinks it is
> RSpec 1.x whereas something else thinks it's RSpec 2.x.
>
> Have you tried using rvm to manage your rubies? http://rvm.beginrescueend.com/
>
> What do 'gem list' and 'sudo gem list' tell you?
>
> Katrina
>
> On Wed, Jan 19, 2011 at 2:50 AM, Steve H. <lists at ruby-forum.com> wrote:
>> I'm on Ubuntu 10.10, and I'm trying to figure out what I'm missing in
>> regards to the require statement for RSpec's expectation library.
>>
>> Any code I see on the web requires rspec like:
>> require 'spec/expectations'
>>
>> but to get it to work I always have to change it to
>> require 'rspec/expectations'
>>
>> More of a curiosity than anything else.
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users
mailing list