forked from heartcombo/devise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request heartcombo#1998 from fabiokr/update_attribute
Replaces update_attribute with update_column
- Loading branch information
Showing
4 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ class HttpAuthenticationTest < ActionController::IntegrationTest | |
test 'sign in should authenticate with really long token' do | ||
token = "token_containing_so_many_characters_that_the_base64_encoding_will_wrap" | ||
user = create_user | ||
user.update_attribute :authentication_token, token | ||
user.update_column :authentication_token, token | ||
get users_path(:format => :xml), {}, "HTTP_AUTHORIZATION" => "Basic #{Base64.encode64("#{token}:x")}" | ||
assert_response :success | ||
assert_match "<email>[email protected]</email>", response.body | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,7 @@ class TokenAuthenticationTest < ActionController::IntegrationTest | |
@user = nil | ||
|
||
user2 = create_user_with_authentication_token(:email => "[email protected]") | ||
user2.update_attribute(:authentication_token, "ANOTHERTOKEN") | ||
user2.update_column(:authentication_token, "ANOTHERTOKEN") | ||
|
||
assert_not_equal user1, user2 | ||
visit users_path(Devise.token_authentication_key.to_s + '[$ne]' => user1.authentication_token) | ||
|