Commit 5ca251c58447226cd0390161282768f84cbcdecc
1 parent
c5256121
Exists in
master
and in
1 other branch
Regression test for merge problem with issue link
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
spec/interactors/problem_merge_spec.rb
... | ... | @@ -41,6 +41,13 @@ describe ProblemMerge do |
41 | 41 | expect(problem.reload.errs.map(&:id).sort).to eq (first_errs | merged_errs).map(&:id).sort |
42 | 42 | end |
43 | 43 | |
44 | + it 'keeps the issue link' do | |
45 | + problem.update_attributes(issue_link: 'http://foo.com', issue_type: 'mock') | |
46 | + problem_merge.merge | |
47 | + expect(problem.reload.issue_link).to eq 'http://foo.com' | |
48 | + expect(problem.reload.issue_type).to eq 'mock' | |
49 | + end | |
50 | + | |
44 | 51 | it 'update problem cache' do |
45 | 52 | expect(ProblemUpdaterCache).to receive(:new).with(problem).and_return(double(:update => true)) |
46 | 53 | problem_merge.merge | ... | ... |