Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/boards/issues/create_service_spec.rb')
-rw-r--r--spec/services/boards/issues/create_service_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/services/boards/issues/create_service_spec.rb b/spec/services/boards/issues/create_service_spec.rb
index 9a6b48c13bf..c4f1eb093dc 100644
--- a/spec/services/boards/issues/create_service_spec.rb
+++ b/spec/services/boards/issues/create_service_spec.rb
@@ -29,9 +29,10 @@ RSpec.describe Boards::Issues::CreateService do
end
it 'adds the label of the list to the issue' do
- issue = service.execute
+ result = service.execute
- expect(issue.labels).to eq [label]
+ expect(result).to be_success
+ expect(result[:issue].labels).to contain_exactly(label)
end
end
end