search for: story_adapt

Displaying 9 results from an estimated 9 matches for "story_adapt".

Did you mean: story_adapter
2007 Nov 15
2
MissingSourceFile spec/rails/story_adapter.rb
I can see that the file story_adapter.rb isn''t where it is supposed to be, however, I don''t know where it comes from in the first place. Can someone give me a hint here? I installed using: ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec ruby script/plugin install svn://rubyfor...
2008 Oct 06
10
Uninitialized constant Spec:Story
...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. Thanks, Mark
2007 Sep 19
1
Strange error in StoryRunner (was: Mocks in StoryRunner)
...error. > > > > ENV["RAILS_ENV"] = "test" > > require File.expand_path(File.dirname(__FILE__) + "/../config/environment") > > require ''spec'' > > require ''spec/rails'' > > require ''spec/rails/story_adapter'' > > > > Story ''Something happens'', %{ > > As a user > > I want to do something > > So that something will happen. > > }, :type => RailsStory do > > > > Scenario ''User doing something for first time'...
2007 Sep 14
2
Mocks in StoryRunner
...g @user to be an actual AR object makes things run without error. ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require ''spec'' require ''spec/rails'' require ''spec/rails/story_adapter'' Story ''Something happens'', %{ As a user I want to do something So that something will happen. }, :type => RailsStory do Scenario ''User doing something for first time'' do Given ''a user'' do @user = mock_model(Use...
2008 Jun 03
9
Build rspec-rails as a gem?
I can''t figure out how to build rspec-rails as a gem when just cloned from github... there isn''t any .gemspec file or rake task that does this. Any help? -- Posted via http://www.ruby-forum.com/.
2008 Mar 14
5
Branching scenarios, GivenScenario and database
I''m trying to use stories to drive some high-level design. I''ve got some branching scenarios where I want to follow a scenario, to establish a base situation, and then have different scenarios which ''branch'' out from that state, possibly several levels deep. I asked a bit about this a few days ago, and David pointed out the rather undocumented GivenScenario
2007 Nov 15
5
What command to run all stories?
Hi, I''ve been following this thread and I can get the example stories to run with the ruby command. But I''ve been unable to get the example from http://blog.davidchelimsky.net/articles/2007/10/25/plain-text-stories-part-iii to run with all.rb ruby stories/all.rb /home/edh/story/stories/additions/steps/addition_steps.rb:2: undefined method `steps_for'' for main:Object
2007 Dec 21
4
StoryRunner docs/guidance
Hi all, Are there any plans for better documentation for the new StoryRunner feature? I tried to use it today (with Rails), and had a hard time getting my head around whether I was doing it "right" and exactly what things are appropriate to test at that level (this might be exacerbated by the fact that I''ve never really used integration testing that much). A full example of
2008 Mar 17
8
should have_tag outside Rails
Hi Google has not helped me here. I''m looking for a way to use the have_tag assert_select wrapper outside RSpec on Rails (but in a Rails project) so I can use it to check text strings. Has anyone managed this? Thanks Ashley -------------- next part -------------- An HTML attachment was scrubbed... URL: