diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-05-15 16:38:05 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-05-15 16:38:05 +0300 |
commit | 5210778d6ef61d006a67cec8a785da6c112fc76c (patch) | |
tree | 6e49cf3ffebc6226b537058cba806ca05859fef6 /spec/services/issues | |
parent | 6960e83b1e9b4aa7dfb0d5fa2d5d5e70a81bb680 (diff) |
Fix specs.
Diffstat (limited to 'spec/services/issues')
-rw-r--r-- | spec/services/issues/close_service_spec.rb | 2 | ||||
-rw-r--r-- | spec/services/issues/update_service_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/issues/close_service_spec.rb b/spec/services/issues/close_service_spec.rb index d15dff1b52b..0e5ae724bf7 100644 --- a/spec/services/issues/close_service_spec.rb +++ b/spec/services/issues/close_service_spec.rb @@ -1,10 +1,10 @@ require 'spec_helper' describe Issues::CloseService do - let(:project) { create(:empty_project) } let(:user) { create(:user) } let(:user2) { create(:user) } let(:issue) { create(:issue, assignee: user2) } + let(:project) { issue.project } before do project.team << [user, :master] diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb index 22b89bec96d..6fc69e93628 100644 --- a/spec/services/issues/update_service_spec.rb +++ b/spec/services/issues/update_service_spec.rb @@ -1,11 +1,11 @@ require 'spec_helper' describe Issues::UpdateService do - let(:project) { create(:empty_project) } let(:user) { create(:user) } let(:user2) { create(:user) } let(:issue) { create(:issue) } let(:label) { create(:label) } + let(:project) { issue.project } before do project.team << [user, :master] |