summaryrefslogtreecommitdiff
path: root/spec/services/boards
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-07-07 11:50:01 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-07-07 11:50:01 +0200
commitc478202ebfa06fdd4ecbafbba285f98d2aa08d60 (patch)
tree0c8734236e6c91bf074c1cccd89c7a8f06c49757 /spec/services/boards
parentde2d5ce685877249434ba412b5839910bc703882 (diff)
downloadgitlab-ce-c478202ebfa06fdd4ecbafbba285f98d2aa08d60.tar.gz
This makes the `Boards::CreateService` more reusable for EEbvl-backport-board-issue-create-service
Diffstat (limited to 'spec/services/boards')
-rw-r--r--spec/services/boards/create_service_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/services/boards/create_service_spec.rb b/spec/services/boards/create_service_spec.rb
index effa4633d13..89615df1692 100644
--- a/spec/services/boards/create_service_spec.rb
+++ b/spec/services/boards/create_service_spec.rb
@@ -26,6 +26,8 @@ describe Boards::CreateService, services: true do
end
it 'does not create a new board' do
+ expect(service).to receive(:can_create_board?) { false }
+
expect { service.execute }.not_to change(project.boards, :count)
end
end