[rspec-users] Error Running Standalone/Command Line rspec: undefined method Pathname

athem allan.m.miller at gmail.com
Sat Dec 12 12:28:48 EST 2009


Hello,

I've written the following simple rspec test that I'm trying to run
(rspec 1.2.9) standalone (outside Rails) from the command line and
getting the following error.  Any idea for how to fix this?  Thanks.

$>  spec foo_rspec.rb

/Users/athem/.gem/ruby/1.8/gems/rspec-1.2.9/lib/spec/runner/options.rb:
108:in `determine_project_root': undefined method `Pathname' for
#<Spec::Runner::Options:0x14dc1e4> (NoMethodError).

foo_rspec.rb file:


require 'spec_helper'

class Foo
end

describe "A Foo that says boo" do
  before(:each) do
    @foo = Foo.new
  end

  it "should say boo" do
    @foo.should say_boo
  end
end


More information about the rspec-users mailing list