|
20 | 20 |
|
21 | 21 | it "returns the changes" do |
22 | 22 | changes = [ double(:first_change), double(:second_change) ] |
23 | | - allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key_1", "-" => 8, "+" => 4).and_return changes[0] |
24 | | - allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key_2", "-" => 9, "+" => 5).and_return changes[1] |
| 23 | + allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key_1", { "-" => 8, "+" => 4 }).and_return changes[0] |
| 24 | + allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key_2", { "-" => 9, "+" => 5 }).and_return changes[1] |
25 | 25 | expect(diff_block.changes).to eq changes |
26 | 26 | end |
27 | 27 | end |
|
40 | 40 |
|
41 | 41 | it "returns the changes" do |
42 | 42 | changes = [ double(:first_change), double(:second_change) ] |
43 | | - allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key/1", "-" => 8, "+" => 4).and_return changes[0] |
44 | | - allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key/2", "-" => 9, "+" => 5).and_return changes[1] |
| 43 | + allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key/1", { "-" => 8, "+" => 4 }).and_return changes[0] |
| 44 | + allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key/2", { "-" => 9, "+" => 5 }).and_return changes[1] |
45 | 45 | expect(diff_block.changes).to eq changes |
46 | 46 | end |
47 | 47 | end |
|
57 | 57 |
|
58 | 58 | it "returns the changes" do |
59 | 59 | change = double(:change) |
60 | | - allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key", "-" => 6).and_return change |
| 60 | + allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key", { "-" => 6 }).and_return change |
61 | 61 | expect(diff_block.changes).to eq [ change ] |
62 | 62 | end |
63 | 63 | end |
|
73 | 73 |
|
74 | 74 | it "returns the changes" do |
75 | 75 | change = double(:change) |
76 | | - allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key", "+" => 5).and_return change |
| 76 | + allow(TranslationsChecker::Change).to receive(:new).with(file_diff, "key", { "+" => 5 }).and_return change |
77 | 77 | expect(diff_block.changes).to eq [ change ] |
78 | 78 | end |
79 | 79 | end |
|
0 commit comments