diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-08-17 14:39:02 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-08-17 14:39:02 -0700 |
commit | cb1e23758380d035266bbecf87beb24fcc30d23c (patch) | |
tree | 727f7362f1eee2692b7777dc114422fabf10d44a | |
parent | 39ee5a2bad22ee7ebd8dda0f14f0d87ef909f6d7 (diff) | |
download | gitlab-ce-cb1e23758380d035266bbecf87beb24fcc30d23c.tar.gz |
Fix spec
-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 |