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 passes... Any clue of what I might do wrong
there ?

you can see here my story :

Story: Filling a profile

        As a user
        I want to fill a profile
        So that I can see my score

        Scenario: Starting a new profile

                Given a company
                And a department
                And 2 questions
                And a number of replies
                And the logged in user [EMAIL PROTECTED]

                When the user starts a new profile

                Then there should be a new profile for this user
                And there should be a list of remaining questions ( ids stored 
in
the session )

                When the user answers a question

                Then there should be one more answer
                Then there should be one question less to answer

        Scenario: Ending a profile
                GivenScenario: Starting a new profile   # if i remove these 2 
lines it
passes

                When the user answers a question # fails here because the 
question
which id's is stored in the session can't be found

                Then there should be one more answer
                Then there should be no more question to answer
                Then the profile should be set as terminated
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to