[rspec-users] cucumber question - uninitialized constant creating object in model

aslak hellesoy aslak.hellesoy at gmail.com
Mon Nov 24 10:50:55 EST 2008


On Sun, Nov 23, 2008 at 6:50 PM, Tim Walker <walketim at gmail.com> wrote:

> Sorry if this is a really basic question. Scanned the past several
> months archives, didn't see it.
>
> When I am running "cucumber features"
>
> I get the error:
>
>  "uninitialized constant Thing (NameError)"
>
> With step code being executed as...
>
> Given /^a thing consisting of "L1" $/ do
>   Thing.new
> end
>
> I understand that this probably a basic question but it's like
> cucumber isn't loading my rails environment.
>

What version/revision of cucumber?
What's in your features directory?
What's the contents of your env.rb file?
What's the full stack trace?

Aslak


>
> Many thanks in advance.
>
> T
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081124/35304e40/attachment.html>


More information about the rspec-users mailing list