[rspec-users] require confusion

2011-01-18 Thread Steve H.
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'

Re: [rspec-users] require confusion

2011-01-18 Thread Katrina Owen
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,

Re: [rspec-users] require confusion

2011-01-18 Thread Pat Maddox
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.