Displaying 4 results from an estimated 4 matches for "scenariorunner".
2008 Mar 20
1
stories with selenium and the db
...x
stuff on a page.
After struggling for an hour or two with disappearing database objects
I found the solution in a blog post by Kerry Buckley.
with the comment included it reads:
# Don''t add an ActiveRecordSafetyListener, or it''ll roll stuff back
class Spec::Story::Runner::ScenarioRunner
def initialize
@listeners = []
end
end
(the above code belongs in the story helper file, or more specific,
for me in my selenium helper file as not every story uses selenium)
Ok, that worked, but I don''t understand why. Can someone explain what
the big difference is with n...
2008 Oct 06
10
Uninitialized constant Spec:Story
...ext-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 14
7
Posted this in "dev" last night but I''m not sure that anyone reads it
...lso started working on a patch, which ought to be simple, to
allow for Scenarios without supplied blocks to be treated as pending
-- much like "it" in Spec::DSL::ExampleAPI.
That said, I noticed something that seemed odd and chatted with Rein
Henrichs a little about it on #rspec. ScenarioRunner#run treats
"pending" scenarios as an error case. We both believed this to be a
little odd as we both thought that pending would just be a branch and
not an error. That said, I thought that there may be a reasonable
explanation.
Evan Light
IMs (all): sleight42
Twitter: elight
ht...
2007 Dec 26
3
executing code after each step of a story
Hello,
how can I execute some code after each step of a story. Is there some
kind of listener documentated.
Thank you in advance,
Armin