Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment