daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 50 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top