Guest User

Untitled

a guest
Mar 13th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. require File.expand_path(File.dirname(__FILE__) + '/../helper')
  2.  
  3. Story "User creating misc. expense", %|
  4. As a user
  5. I want be able to submit an expense reimbursement request for a misc. expense
  6. so that I can be reimbursed|,
  7. :steps => :a_user_creating_a_misc_expense do
  8.  
  9. Scenario "creating a misc. expense successfully" do
  10. Given "a user at a new expense reimbursement page"
  11. When "they click the add misc. expense link"
  12. Then "they will see the new misc. expense form"
  13.  
  14. When "they submit with insufficent data"
  15. Then "they will see error messages pertaining to the missing data"
  16.  
  17. When "they submit the misc. expense form with valid data"
  18. Then "they will see a message telling them the misc. expense was successfully created"
  19. And "they will see newly created misc. expense in the expense's list"
  20. end
  21. end
  22.  
  23. steps_for :a_user_creating_a_misc_expense do
  24. Given "a user at a new expense reimbursement page" do
  25. STDERR.puts "HERE"
  26. get "/"
  27.  
  28. end
  29. # When they click the add misc. expense link
  30. # Then they will see the new misc. expense form
  31. #
  32. # When they submit with insufficent data
  33. # Then they will see error messages pertaining to the missing data
  34. #
  35. # When they submit the misc. expense form with valid data
  36. # Then they will see a message telling them the misc. expense was successfully created
  37. # And they will see newly created misc. expense in the expense's list
  38. end
Add Comment
Please, Sign In to add comment