Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "exposes a newly created account as @account" do
- mock_account.stub!(:owner=)
- mock_account.stub!(:save).and_return(true)
- Account.should_receive(:new).with({'these' => 'params'}).and_return(mock_account(:save => true))
- @params[:account] = {:these => 'params'}
- do_request
- assigns(:account).should equal(mock_account)
- end
Add Comment
Please, Sign In to add comment