Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucashungaro/110797 to your computer and use it in GitHub Desktop.
Save lucashungaro/110797 to your computer and use it in GitHub Desktop.
it "should be successful" do
Account.expects(:new).with(:current_user => @user, :first_name => "Test", :last_name => "Test").returns(@account)
@account.expects(:login_method=).with(CONFIG::LOGIN::OpenID)
@account.expects(:has_email_and_password=).at_least_once
@account.expects(:has_openid=).twice
do_edit
response.should be_success
response.should render_template("edit")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment