Guest User

Untitled

a guest
Jul 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. test "should create job" do
  2. @job.client = clients(:mcdonalds)
  3. @job.save!
  4.  
  5. assert_difference('Job.count', 0) do
  6. post :create, :job => @job.attributes
  7. end
  8.  
  9. assert_redirected_to job_path(assigns(:job))
  10. end
Add Comment
Please, Sign In to add comment