[rspec-users] Uninitialized constant Spec:Story

David Chelimsky dchelimsky at gmail.com
Mon Oct 6 13:20:08 EDT 2008


On Mon, Oct 6, 2008 at 11:29 AM, Mark Thomson <mark.thomson at ieee.org> wrote:
> Hi, I'm fairly new to Rails and v. new to RSpec. Think it looks pretty
> useful and so I'm trying it out for the first time. I have installed the
> rspec-rails gem and created a simple plain text my_story file and
> my_story.rb file along the lines described here -
> http://www.tomtenthij.co.uk/2008/1/25/rspec-plain-text-story-runner-on-a-fresh-rails-app.
>
> When I run stories/my_story.rb it blows up and the thing that seems most
> significant in the error messages is "uninitialized constant Spec::Story
> (NameError)" which seems to originate from story_adapter.rb:66, where the
> class Spec::Story::Runner::ScenarioRunner is defined.
>
> Would appreciate any guidance towards a resolution of this issue.

Have you done this:

script/generate rspec

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


More information about the rspec-users mailing list