Guest User

Untitled

a guest
May 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. it "should allow a get on complete"
  2. @contract = mock_model(Contract, :id => '1', :body => 'tra la la', :confirmation_number => 123)
  3. @client.stub!(:full_name).and_return('John Smith')
  4. @client.stub!(:generate_confirmation_number)
  5.  
  6. get :complete
  7. response.should be_success
  8. response.should render_template('clients/complete')
  9. end
Add Comment
Please, Sign In to add comment