Displaying 4 results from an estimated 4 matches for "story_end".
Did you mean:
ctors_end
2008 Jun 14
15
Reusing story snippets
I find myself doing this:
Scenario "logged in user visiting the home page" do
Given "A logged in user" do
a_logged_in_user
end
When "..."
Then "..."
end
The a_logged_in_user method is a helper method in helper.rb which sets
up the state so that the user can browse the website.
Later in the story of course, I can just do ''Given
2008 May 08
7
Rspec Stories / Selenium Nightmare
...manually cleanup my selenium stories :(
So that required writing a new, rather gritty scenario listener which
dealt with the cleaning operation. It has to do lots of horrible things
like remove all listeners for a selenium story and then re-add them all
for the others stories.
*Code Extract*
def story_ended(title, narrative)
case title
when ''Edit a page''
#We have finished the selenium story
$selenium_driver.stop
#Do we need to re-add some listeners
if !@listener_reloaded
Spec::Story::Runner.scenario_runner.add_listener(ActiveRecordSafetyListener.instance...
2008 May 23
3
RailsExampleGroup
So I have a describe which is a subclass of RailsExampleGroup. I inserted
some data into my database, and reconnect! my connection. Before reconnect,
finding the data I just created is fine. The data cannot be found, after
reconnection, the data is gone. It''s not in the database. It looks to me the
data is not actually inserted into the DB at all, just somehow buffered
somewhere. Would
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