Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.expand_path(File.dirname(__FILE__) + '/../helper')
- Story "User creating misc. expense", %|
- As a user
- I want be able to submit an expense reimbursement request for a misc. expense
- so that I can be reimbursed|,
- :steps => :a_user_creating_a_misc_expense do
- Scenario "creating a misc. expense successfully" do
- Given "a user at a new expense reimbursement page"
- When "they click the add misc. expense link"
- Then "they will see the new misc. expense form"
- When "they submit with insufficent data"
- Then "they will see error messages pertaining to the missing data"
- When "they submit the misc. expense form with valid data"
- Then "they will see a message telling them the misc. expense was successfully created"
- And "they will see newly created misc. expense in the expense's list"
- end
- end
- steps_for :a_user_creating_a_misc_expense do
- Given "a user at a new expense reimbursement page" do
- STDERR.puts "HERE"
- get "/"
- end
- # When they click the add misc. expense link
- # Then they will see the new misc. expense form
- #
- # When they submit with insufficent data
- # Then they will see error messages pertaining to the missing data
- #
- # When they submit the misc. expense form with valid data
- # Then they will see a message telling them the misc. expense was successfully created
- # And they will see newly created misc. expense in the expense's list
- end
Add Comment
Please, Sign In to add comment