Re: [rspec-users] [Stories]Troubles with GivenScenario

2008-03-25 Thread Bastien
done : http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/350 Thanks for your great work. On Mar 25, 1:00 pm, "David Chelimsky" <[EMAIL PROTECTED]> wrote: > On Tue, Mar 25, 2008 at 6:31 AM, Bastien <[EMAIL PROTECTED]> wrote: > > Of course, here you go : > > > steps_for(:work_area_executi

Re: [rspec-users] [Stories]Troubles with GivenScenario

2008-03-25 Thread David Chelimsky
On Tue, Mar 25, 2008 at 6:31 AM, Bastien <[EMAIL PROTECTED]> wrote: > Of course, here you go : > > steps_for(:work_area_execution) do > > Given("a company") do > @account = Factory.create_valid_account() > end > > Given("$amount questions?") do |amount| > Question.delete_all > ca

Re: [rspec-users] [Stories]Troubles with GivenScenario

2008-03-25 Thread Bastien
Of course, here you go : steps_for(:work_area_execution) do Given("a company") do @account = Factory.create_valid_account() end Given("$amount questions?") do |amount| Question.delete_all category = Factory.create_valid_category work_area = Factory.create_valid_work_area(ca

Re: [rspec-users] [Stories]Troubles with GivenScenario

2008-03-25 Thread David Chelimsky
On Tue, Mar 25, 2008 at 5:13 AM, Bastien <[EMAIL PROTECTED]> wrote: > I have some problems with GivenScenario, my scenario keeps on failing > when I use GivenScenario, like if the database or the session was not > in the same state at the beginning of the new scenario as it was at > the end of t

[rspec-users] [Stories]Troubles with GivenScenario

2008-03-25 Thread Bastien
I have some problems with GivenScenario, my scenario keeps on failing when I use GivenScenario, like if the database or the session was not in the same state at the beginning of the new scenario as it was at the end of the given one. If I try to group my two scenari in only one big scenario then it