Sha256: 41cc0607804177571c145ca7bdfee836f845c71dcc11ea4a013ed26384b2a5ba
Contents?: true
Size: 862 Bytes
Versions: 7
Compression:
Stored size: 862 Bytes
Contents
require 'test_helper' class PasswordResetsControllerTest < ActionController::TestCase fixtures :all test "should get new and respond with success" do get :new assert_response :success end test "should post to create and send an email" do assert_difference ActionMailer::Base.deliveries, :length, 1 do post :create, :email => users(:quentin).email assert_response :redirect assert_redirected_to login_path end end test "should get edit and respond with success" do get :edit, :id => users(:quentin).perishable_token assert_response :success end test "should put to update and redirect to dashboard" do @user = users(:quentin) put :update, :id => @user.perishable_token, :user => { :password => "newpassword" } assert_redirected_to dashboard_user_path(@user) end end
Version data entries
7 entries across 7 versions & 1 rubygems