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

David Chelimsky dchelimsky at gmail.com
Mon Nov 24 09:20:38 EST 2008


On Sun, Nov 23, 2008 at 11:50 AM, 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.
>
> Many thanks in advance.

Have you read and followed
http://github.com/aslakhellesoy/cucumber/wikis/ruby-on-rails?

>
> T
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list