summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-08-17 14:39:02 -0700
committerMichael Kozono <mkozono@gmail.com>2017-08-17 14:39:02 -0700
commitcb1e23758380d035266bbecf87beb24fcc30d23c (patch)
tree727f7362f1eee2692b7777dc114422fabf10d44a
parent39ee5a2bad22ee7ebd8dda0f14f0d87ef909f6d7 (diff)
downloadgitlab-ce-cb1e23758380d035266bbecf87beb24fcc30d23c.tar.gz
Fix spec
-rw-r--r--spec/migrations/remove_dot_git_from_usernames_spec.rb3
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