test/functional/users/confirmations_controller_test.rb in janus-0.9.1 vs test/functional/users/confirmations_controller_test.rb in janus-0.10.0

- old
+ new

@@ -13,31 +13,31 @@ end test "should not get show without token" do assert_no_difference('User.count(:confirmed_at)') do get :show - assert_response :ok + assert_response :bad_request assert_template 'new' assert_select '#error_explanation' end end test "should not get show with blank token" do assert_no_difference('User.count(:confirmed_at)') do get :show, :token => "" - assert_response :ok + assert_response :bad_request assert_template 'new' assert_select '#error_explanation' end end test "should not get show with bad token" do users(:julien).generate_reset_password_token! assert_no_difference('User.count(:confirmed_at)') do get :show, :token => "aiorujfqptezjsmdguspfofkn" - assert_response :ok + assert_response :bad_request assert_template 'new' assert_select '#error_explanation' end end @@ -57,12 +57,12 @@ end test "should not create" do assert_no_email do post :create, :user => { :email => 'nobody@example.com' } + assert_response :not_found end - assert_response :ok assert_template 'new' assert_select '#error_explanation' end end