diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-08-18 00:39:02 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-08-18 00:39:02 +0300 |
commit | cb1e23758380d035266bbecf87beb24fcc30d23c (patch) | |
tree | 727f7362f1eee2692b7777dc114422fabf10d44a /spec/migrations/remove_dot_git_from_usernames_spec.rb | |
parent | 39ee5a2bad22ee7ebd8dda0f14f0d87ef909f6d7 (diff) |
Fix spec
Diffstat (limited to 'spec/migrations/remove_dot_git_from_usernames_spec.rb')
-rw-r--r-- | spec/migrations/remove_dot_git_from_usernames_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/migrations/remove_dot_git_from_usernames_spec.rb b/spec/migrations/remove_dot_git_from_usernames_spec.rb index 8737e00eaeb..129374cb38c 100644 --- a/spec/migrations/remove_dot_git_from_usernames_spec.rb +++ b/spec/migrations/remove_dot_git_from_usernames_spec.rb @@ -51,7 +51,6 @@ describe RemoveDotGitFromUsernames do namespace.path = path namespace.save!(validate: false) - user.username = path - user.save!(validate: false) + user.update_column(:username, path) end end |