diff options
author | Valery Sizov <valery@gitlab.com> | 2017-05-15 12:39:56 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-05-15 12:39:56 +0300 |
commit | 268b1c79e9b25061718215afe0897d952a92a967 (patch) | |
tree | 9b49fc8aa8656439b70ba2319a091caba035ff1e /spec/services/issues | |
parent | e261b4b8517ba6d5d5b082f1955836c945fd51fc (diff) |
[Spec optimization] Joining one-line 'it' blocks
Diffstat (limited to 'spec/services/issues')
-rw-r--r-- | spec/services/issues/close_service_spec.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/spec/services/issues/close_service_spec.rb b/spec/services/issues/close_service_spec.rb index 51840531711..0a1f41719f7 100644 --- a/spec/services/issues/close_service_spec.rb +++ b/spec/services/issues/close_service_spec.rb @@ -51,8 +51,10 @@ describe Issues::CloseService, services: true do end end - it { expect(issue).to be_valid } - it { expect(issue).to be_closed } + it 'closes the issue' do + expect(issue).to be_valid + expect(issue).to be_closed + end it 'sends email to user2 about assign of new issue' do email = ActionMailer::Base.deliveries.last @@ -96,9 +98,11 @@ describe Issues::CloseService, services: true do described_class.new(project, user).close_issue(issue) end - it { expect(issue).to be_valid } - it { expect(issue).to be_opened } - it { expect(todo.reload).to be_pending } + it 'closes the issue' do + expect(issue).to be_valid + expect(issue).to be_opened + expect(todo.reload).to be_pending + end end end end |