search for: listener_reload

Displaying 1 result from an estimated 1 matches for "listener_reload".

Did you mean: listener_reloaded
2008 May 08
7
Rspec Stories / Selenium Nightmare
...steners 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) @listener_reloaded=true end end end I had to duplicate a lot of the story steps since now any previous post/gets did not work since they post to the test instance and not the selenium rails...