Commit 3720198d authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Adjust test texts

parent 4d306322
...@@ -72,7 +72,7 @@ describe RelatedIssues::CreateService, service: true do ...@@ -72,7 +72,7 @@ describe RelatedIssues::CreateService, service: true do
another_project.team << [user, :developer] another_project.team << [user, :developer]
end end
it 'create relationships' do it 'creates relationships' do
expect { subject }.to change(RelatedIssue, :count).from(0).to(2) expect { subject }.to change(RelatedIssue, :count).from(0).to(2)
expect(RelatedIssue.first).to have_attributes(issue: issue, related_issue: issue_a) expect(RelatedIssue.first).to have_attributes(issue: issue, related_issue: issue_a)
......
...@@ -7,11 +7,11 @@ describe RelatedIssues::DestroyService, service: true do ...@@ -7,11 +7,11 @@ describe RelatedIssues::DestroyService, service: true do
subject { described_class.new(related_issue, user).execute } subject { described_class.new(related_issue, user).execute }
it 'remove related issue' do it 'removes related issue' do
expect { subject }.to change(RelatedIssue, :count).from(1).to(0) expect { subject }.to change(RelatedIssue, :count).from(1).to(0)
end end
it 'create notes' do it 'creates notes' do
# Two-way notes creation # Two-way notes creation
expect(SystemNoteService).to receive(:unrelate_issue) expect(SystemNoteService).to receive(:unrelate_issue)
.with(related_issue.issue, related_issue.related_issue, user) .with(related_issue.issue, related_issue.related_issue, user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment