Guest User

Untitled

a guest
Mar 4th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. it "should be successful" do
  2. Account.expects(:new).with(:current_user => @user, :first_name => "Test", :last_name => "Test").returns(@account)
  3. @account.expects(:login_method=).with(CONFIG::LOGIN::OpenID)
  4. @account.expects(:has_email_and_password=).at_least_once
  5. @account.expects(:has_openid=).twice
  6. do_edit
  7. response.should be_success
  8. response.should render_template("edit")
  9. end
Add Comment
Please, Sign In to add comment