diff options
| author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2013-09-17 22:12:10 +0900 |
|---|---|---|
| committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2013-09-17 23:05:42 +0900 |
| commit | a3ef683108a7af10bb63342db429a47ffc5abea4 (patch) | |
| tree | d9526a013854bea20687203e6943a8ed7742d303 /spec/contexts/issues | |
| parent | 2d31a9f345fd84fc65cac9b429a907e96b4e18b7 (diff) | |
| download | gitlab-ce-a3ef683108a7af10bb63342db429a47ffc5abea4.tar.gz | |
Drop support of root namespace in model
Diffstat (limited to 'spec/contexts/issues')
| -rw-r--r-- | spec/contexts/issues/bulk_update_context_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/contexts/issues/bulk_update_context_spec.rb b/spec/contexts/issues/bulk_update_context_spec.rb index 0966ee35745..058e43ba090 100644 --- a/spec/contexts/issues/bulk_update_context_spec.rb +++ b/spec/contexts/issues/bulk_update_context_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe Issues::BulkUpdateContext do + before(:each) { ActiveRecord::Base.observers.enable(:user_observer) } + after(:each) { ActiveRecord::Base.observers.disable(:user_observer) } let(:issue) { create(:issue, project: @project) @@ -9,7 +11,8 @@ describe Issues::BulkUpdateContext do before do @user = create :user opts = { - name: "GitLab" + name: "GitLab", + namespace: @user.namespace } @project = Projects::CreateContext.new(@user, opts).execute end |
