diff-lcs 1.4.4 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Contributing.md +3 -0
- data/History.md +219 -107
- data/License.md +6 -4
- data/Manifest.txt +15 -1
- data/Rakefile +81 -25
- data/bin/htmldiff +4 -4
- data/lib/diff/lcs/array.rb +1 -1
- data/lib/diff/lcs/backports.rb +2 -2
- data/lib/diff/lcs/block.rb +4 -4
- data/lib/diff/lcs/callbacks.rb +9 -7
- data/lib/diff/lcs/change.rb +19 -19
- data/lib/diff/lcs/htmldiff.rb +24 -16
- data/lib/diff/lcs/hunk.rb +35 -30
- data/lib/diff/lcs/internals.rb +24 -20
- data/lib/diff/lcs/ldiff.rb +37 -35
- data/lib/diff/lcs.rb +77 -75
- data/lib/diff-lcs.rb +1 -1
- data/spec/change_spec.rb +50 -50
- data/spec/diff_spec.rb +14 -14
- data/spec/fixtures/ldiff/output.diff.chef +4 -0
- data/spec/fixtures/ldiff/output.diff.chef-c +15 -0
- data/spec/fixtures/ldiff/output.diff.chef-e +3 -0
- data/spec/fixtures/ldiff/output.diff.chef-f +3 -0
- data/spec/fixtures/ldiff/output.diff.chef-u +9 -0
- data/spec/fixtures/ldiff/output.diff.chef2 +7 -0
- data/spec/fixtures/ldiff/output.diff.chef2-c +20 -0
- data/spec/fixtures/ldiff/output.diff.chef2-d +7 -0
- data/spec/fixtures/ldiff/output.diff.chef2-e +7 -0
- data/spec/fixtures/ldiff/output.diff.chef2-f +7 -0
- data/spec/fixtures/ldiff/output.diff.chef2-u +16 -0
- data/spec/fixtures/new-chef +4 -0
- data/spec/fixtures/new-chef2 +17 -0
- data/spec/fixtures/old-chef +4 -0
- data/spec/fixtures/old-chef2 +14 -0
- data/spec/hunk_spec.rb +19 -19
- data/spec/issues_spec.rb +48 -42
- data/spec/lcs_spec.rb +11 -11
- data/spec/ldiff_spec.rb +13 -11
- data/spec/patch_spec.rb +84 -84
- data/spec/sdiff_spec.rb +111 -109
- data/spec/spec_helper.rb +77 -76
- data/spec/traverse_balanced_spec.rb +191 -189
- data/spec/traverse_sequences_spec.rb +31 -33
- metadata +50 -23
- data/autotest/discover.rb +0 -3
@@ -0,0 +1,15 @@
|
|
1
|
+
*** spec/fixtures/old-chef 2020-06-23 23:18:20.000000000 -0400
|
2
|
+
--- spec/fixtures/new-chef 2020-06-23 23:18:20.000000000 -0400
|
3
|
+
***************
|
4
|
+
*** 1,4 ****
|
5
|
+
{
|
6
|
+
"name": "x",
|
7
|
+
! "description": "hi"
|
8
|
+
}
|
9
|
+
|
10
|
+
--- 1,4 ----
|
11
|
+
{
|
12
|
+
"name": "x",
|
13
|
+
! "description": "lo"
|
14
|
+
}
|
15
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
*** spec/fixtures/old-chef2 2020-06-30 09:43:35.000000000 -0400
|
2
|
+
--- spec/fixtures/new-chef2 2020-06-30 09:44:32.000000000 -0400
|
3
|
+
***************
|
4
|
+
*** 1,5 ****
|
5
|
+
recipe[a::default]
|
6
|
+
- recipe[b::default]
|
7
|
+
recipe[c::default]
|
8
|
+
recipe[d::default]
|
9
|
+
recipe[e::default]
|
10
|
+
--- 1,4 ----
|
11
|
+
***************
|
12
|
+
*** 12,14 ****
|
13
|
+
--- 11,17 ----
|
14
|
+
recipe[l::default]
|
15
|
+
recipe[m::default]
|
16
|
+
recipe[n::default]
|
17
|
+
+ recipe[o::new]
|
18
|
+
+ recipe[p::new]
|
19
|
+
+ recipe[q::new]
|
20
|
+
+ recipe[r::new]
|
@@ -0,0 +1,16 @@
|
|
1
|
+
--- spec/fixtures/old-chef2 2020-06-30 09:43:35.000000000 -0400
|
2
|
+
+++ spec/fixtures/new-chef2 2020-06-30 09:44:32.000000000 -0400
|
3
|
+
@@ -1,5 +1,4 @@
|
4
|
+
recipe[a::default]
|
5
|
+
-recipe[b::default]
|
6
|
+
recipe[c::default]
|
7
|
+
recipe[d::default]
|
8
|
+
recipe[e::default]
|
9
|
+
@@ -12,3 +11,7 @@
|
10
|
+
recipe[l::default]
|
11
|
+
recipe[m::default]
|
12
|
+
recipe[n::default]
|
13
|
+
+recipe[o::new]
|
14
|
+
+recipe[p::new]
|
15
|
+
+recipe[q::new]
|
16
|
+
+recipe[r::new]
|
@@ -0,0 +1,17 @@
|
|
1
|
+
recipe[a::default]
|
2
|
+
recipe[c::default]
|
3
|
+
recipe[d::default]
|
4
|
+
recipe[e::default]
|
5
|
+
recipe[f::default]
|
6
|
+
recipe[g::default]
|
7
|
+
recipe[h::default]
|
8
|
+
recipe[i::default]
|
9
|
+
recipe[j::default]
|
10
|
+
recipe[k::default]
|
11
|
+
recipe[l::default]
|
12
|
+
recipe[m::default]
|
13
|
+
recipe[n::default]
|
14
|
+
recipe[o::new]
|
15
|
+
recipe[p::new]
|
16
|
+
recipe[q::new]
|
17
|
+
recipe[r::new]
|
@@ -0,0 +1,14 @@
|
|
1
|
+
recipe[a::default]
|
2
|
+
recipe[b::default]
|
3
|
+
recipe[c::default]
|
4
|
+
recipe[d::default]
|
5
|
+
recipe[e::default]
|
6
|
+
recipe[f::default]
|
7
|
+
recipe[g::default]
|
8
|
+
recipe[h::default]
|
9
|
+
recipe[i::default]
|
10
|
+
recipe[j::default]
|
11
|
+
recipe[k::default]
|
12
|
+
recipe[l::default]
|
13
|
+
recipe[m::default]
|
14
|
+
recipe[n::default]
|
data/spec/hunk_spec.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
if String.method_defined?(:encoding)
|
6
|
-
require
|
6
|
+
require "diff/lcs/hunk"
|
7
7
|
|
8
8
|
describe Diff::LCS::Hunk do
|
9
|
-
let(:old_data) { [
|
10
|
-
let(:new_data) { [
|
11
|
-
let(:pieces)
|
12
|
-
let(:hunk)
|
9
|
+
let(:old_data) { ["Tu a un carté avec {count} itéms".encode("UTF-16LE")] }
|
10
|
+
let(:new_data) { ["Tu a un carte avec {count} items".encode("UTF-16LE")] }
|
11
|
+
let(:pieces) { Diff::LCS.diff old_data, new_data }
|
12
|
+
let(:hunk) { Diff::LCS::Hunk.new(old_data, new_data, pieces[0], 3, 0) }
|
13
13
|
|
14
|
-
it
|
15
|
-
expected = <<-EXPECTED.gsub(/^\s+/,
|
14
|
+
it "produces a unified diff from the two pieces" do
|
15
|
+
expected = <<-EXPECTED.gsub(/^\s+/, "").encode("UTF-16LE").chomp
|
16
16
|
@@ -1 +1 @@
|
17
17
|
-Tu a un carté avec {count} itéms
|
18
18
|
+Tu a un carte avec {count} items
|
@@ -21,8 +21,8 @@ if String.method_defined?(:encoding)
|
|
21
21
|
expect(hunk.diff(:unified)).to eq(expected)
|
22
22
|
end
|
23
23
|
|
24
|
-
it
|
25
|
-
expected = <<-EXPECTED.gsub(/^\s+/,
|
24
|
+
it "produces a unified diff from the two pieces (last entry)" do
|
25
|
+
expected = <<-EXPECTED.gsub(/^\s+/, "").encode("UTF-16LE").chomp
|
26
26
|
@@ -1 +1 @@
|
27
27
|
-Tu a un carté avec {count} itéms
|
28
28
|
+Tu a un carte avec {count} items
|
@@ -32,8 +32,8 @@ if String.method_defined?(:encoding)
|
|
32
32
|
expect(hunk.diff(:unified, true)).to eq(expected)
|
33
33
|
end
|
34
34
|
|
35
|
-
it
|
36
|
-
expected = <<-EXPECTED.gsub(/^\s+/,
|
35
|
+
it "produces a context diff from the two pieces" do
|
36
|
+
expected = <<-EXPECTED.gsub(/^\s+/, "").encode("UTF-16LE").chomp
|
37
37
|
***************
|
38
38
|
*** 1 ****
|
39
39
|
! Tu a un carté avec {count} itéms
|
@@ -44,8 +44,8 @@ if String.method_defined?(:encoding)
|
|
44
44
|
expect(hunk.diff(:context)).to eq(expected)
|
45
45
|
end
|
46
46
|
|
47
|
-
it
|
48
|
-
expected = <<-EXPECTED.gsub(/^ +/,
|
47
|
+
it "produces an old diff from the two pieces" do
|
48
|
+
expected = <<-EXPECTED.gsub(/^ +/, "").encode("UTF-16LE").chomp
|
49
49
|
1c1
|
50
50
|
< Tu a un carté avec {count} itéms
|
51
51
|
---
|
@@ -56,8 +56,8 @@ if String.method_defined?(:encoding)
|
|
56
56
|
expect(hunk.diff(:old)).to eq(expected)
|
57
57
|
end
|
58
58
|
|
59
|
-
it
|
60
|
-
expected = <<-EXPECTED.gsub(/^ +/,
|
59
|
+
it "produces a reverse ed diff from the two pieces" do
|
60
|
+
expected = <<-EXPECTED.gsub(/^ +/, "").encode("UTF-16LE").chomp
|
61
61
|
c1
|
62
62
|
Tu a un carte avec {count} items
|
63
63
|
.
|
@@ -67,11 +67,11 @@ if String.method_defined?(:encoding)
|
|
67
67
|
expect(hunk.diff(:reverse_ed)).to eq(expected)
|
68
68
|
end
|
69
69
|
|
70
|
-
context
|
70
|
+
context "with empty first data set" do
|
71
71
|
let(:old_data) { [] }
|
72
72
|
|
73
|
-
it
|
74
|
-
expected = <<-EXPECTED.gsub(/^\s+/,
|
73
|
+
it "produces a unified diff" do
|
74
|
+
expected = <<-EXPECTED.gsub(/^\s+/, "").encode("UTF-16LE").chomp
|
75
75
|
@@ -1 +1,2 @@
|
76
76
|
+Tu a un carte avec {count} items
|
77
77
|
EXPECTED
|
data/spec/issues_spec.rb
CHANGED
@@ -1,73 +1,76 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "spec_helper"
|
4
|
+
require "diff/lcs/hunk"
|
5
5
|
|
6
|
-
describe
|
6
|
+
describe "Diff::LCS Issues" do
|
7
7
|
include Diff::LCS::SpecHelper::Matchers
|
8
8
|
|
9
|
-
describe
|
10
|
-
shared_examples
|
9
|
+
describe "issue #1" do
|
10
|
+
shared_examples "handles simple diffs" do |s1, s2, forward_diff|
|
11
11
|
before do
|
12
12
|
@diff_s1_s2 = Diff::LCS.diff(s1, s2)
|
13
13
|
end
|
14
14
|
|
15
|
-
it
|
15
|
+
it "creates the correct diff" do
|
16
16
|
expect(change_diff(forward_diff)).to eq(@diff_s1_s2)
|
17
17
|
end
|
18
18
|
|
19
|
-
it
|
19
|
+
it "creates the correct patch s1->s2" do
|
20
20
|
expect(Diff::LCS.patch(s1, @diff_s1_s2)).to eq(s2)
|
21
21
|
end
|
22
22
|
|
23
|
-
it
|
23
|
+
it "creates the correct patch s2->s1" do
|
24
24
|
expect(Diff::LCS.patch(s2, @diff_s1_s2)).to eq(s1)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
describe
|
29
|
-
it_has_behavior
|
28
|
+
describe "string" do
|
29
|
+
it_has_behavior "handles simple diffs", "aX", "bXaX", [
|
30
30
|
[
|
31
|
-
[
|
32
|
-
[
|
31
|
+
["+", 0, "b"],
|
32
|
+
["+", 1, "X"]
|
33
33
|
]
|
34
34
|
]
|
35
|
-
it_has_behavior
|
35
|
+
it_has_behavior "handles simple diffs", "bXaX", "aX", [
|
36
36
|
[
|
37
|
-
[
|
38
|
-
[
|
37
|
+
["-", 0, "b"],
|
38
|
+
["-", 1, "X"]
|
39
39
|
]
|
40
40
|
]
|
41
41
|
end
|
42
42
|
|
43
|
-
describe
|
44
|
-
it_has_behavior
|
43
|
+
describe "array" do
|
44
|
+
it_has_behavior "handles simple diffs", %w[a X], %w[b X a X], [
|
45
45
|
[
|
46
|
-
[
|
47
|
-
[
|
46
|
+
["+", 0, "b"],
|
47
|
+
["+", 1, "X"]
|
48
48
|
]
|
49
49
|
]
|
50
|
-
it_has_behavior
|
50
|
+
it_has_behavior "handles simple diffs", %w[b X a X], %w[a X], [
|
51
51
|
[
|
52
|
-
[
|
53
|
-
[
|
52
|
+
["-", 0, "b"],
|
53
|
+
["-", 1, "X"]
|
54
54
|
]
|
55
55
|
]
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe
|
60
|
-
it
|
59
|
+
describe "issue #57" do
|
60
|
+
it "should fail with a correct error" do
|
61
|
+
# standard:disable Style/HashSyntax
|
61
62
|
expect {
|
62
|
-
actual = {
|
63
|
-
expected = {
|
63
|
+
actual = {:category => "app.rack.request"}
|
64
|
+
expected = {:category => "rack.middleware", :title => "Anonymous Middleware"}
|
64
65
|
expect(actual).to eq(expected)
|
65
66
|
}.to raise_error(RSpec::Expectations::ExpectationNotMetError)
|
67
|
+
# standard:enable Style/HashSyntax
|
66
68
|
end
|
67
69
|
end
|
68
70
|
|
69
|
-
describe
|
70
|
-
it
|
71
|
+
describe "issue #60" do
|
72
|
+
it "should produce unified output with correct context" do
|
73
|
+
# standard:disable Layout/HeredocIndentation
|
71
74
|
old_data = <<-DATA_OLD.strip.split("\n").map(&:chomp)
|
72
75
|
{
|
73
76
|
"name": "x",
|
@@ -93,10 +96,11 @@ describe 'Diff::LCS Issues' do
|
|
93
96
|
+ "description": "lo"
|
94
97
|
}
|
95
98
|
EXPECTED
|
99
|
+
# standard:enable Layout/HeredocIndentation
|
96
100
|
end
|
97
101
|
end
|
98
102
|
|
99
|
-
describe
|
103
|
+
describe "issue #65" do
|
100
104
|
def diff_lines(old_lines, new_lines)
|
101
105
|
file_length_difference = 0
|
102
106
|
previous_hunk = nil
|
@@ -105,7 +109,7 @@ describe 'Diff::LCS Issues' do
|
|
105
109
|
Diff::LCS.diff(old_lines, new_lines).each do |piece|
|
106
110
|
hunk = Diff::LCS::Hunk.new(old_lines, new_lines, piece, 3, file_length_difference)
|
107
111
|
file_length_difference = hunk.file_length_difference
|
108
|
-
maybe_contiguous_hunks =
|
112
|
+
maybe_contiguous_hunks = previous_hunk.nil? || hunk.merge(previous_hunk)
|
109
113
|
|
110
114
|
output << "#{previous_hunk.diff(:unified)}\n" unless maybe_contiguous_hunks
|
111
115
|
|
@@ -115,24 +119,25 @@ describe 'Diff::LCS Issues' do
|
|
115
119
|
output.join
|
116
120
|
end
|
117
121
|
|
118
|
-
it
|
122
|
+
it "should not misplace the new chunk" do
|
119
123
|
old_data = [
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
124
|
+
"recipe[a::default]", "recipe[b::default]", "recipe[c::default]",
|
125
|
+
"recipe[d::default]", "recipe[e::default]", "recipe[f::default]",
|
126
|
+
"recipe[g::default]", "recipe[h::default]", "recipe[i::default]",
|
127
|
+
"recipe[j::default]", "recipe[k::default]", "recipe[l::default]",
|
128
|
+
"recipe[m::default]", "recipe[n::default]"
|
125
129
|
]
|
126
130
|
|
127
131
|
new_data = [
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
132
|
+
"recipe[a::default]", "recipe[c::default]", "recipe[d::default]",
|
133
|
+
"recipe[e::default]", "recipe[f::default]", "recipe[g::default]",
|
134
|
+
"recipe[h::default]", "recipe[i::default]", "recipe[j::default]",
|
135
|
+
"recipe[k::default]", "recipe[l::default]", "recipe[m::default]",
|
136
|
+
"recipe[n::default]", "recipe[o::new]", "recipe[p::new]",
|
137
|
+
"recipe[q::new]", "recipe[r::new]"
|
134
138
|
]
|
135
139
|
|
140
|
+
# standard:disable Layout/HeredocIndentation
|
136
141
|
expect(diff_lines(old_data, new_data)).to eq(<<-EODIFF)
|
137
142
|
@@ -1,5 +1,4 @@
|
138
143
|
recipe[a::default]
|
@@ -149,6 +154,7 @@ describe 'Diff::LCS Issues' do
|
|
149
154
|
+recipe[q::new]
|
150
155
|
+recipe[r::new]
|
151
156
|
EODIFF
|
157
|
+
# standard:enable Layout/HeredocIndentation
|
152
158
|
end
|
153
159
|
end
|
154
160
|
end
|
data/spec/lcs_spec.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
|
-
describe Diff::LCS::Internals,
|
5
|
+
describe Diff::LCS::Internals, ".lcs" do
|
6
6
|
include Diff::LCS::SpecHelper::Matchers
|
7
7
|
|
8
|
-
it
|
8
|
+
it "returns a meaningful LCS array with (seq1, seq2)" do
|
9
9
|
res = Diff::LCS::Internals.lcs(seq1, seq2)
|
10
10
|
# The result of the LCS (less the +nil+ values) must be as long as the
|
11
11
|
# correct result.
|
@@ -20,37 +20,37 @@ describe Diff::LCS::Internals, '.lcs' do
|
|
20
20
|
expect(x_seq2).to eq(correct_lcs)
|
21
21
|
end
|
22
22
|
|
23
|
-
it
|
23
|
+
it "returns all indexes with (hello, hello)" do
|
24
24
|
expect(Diff::LCS::Internals.lcs(hello, hello)).to \
|
25
25
|
eq((0...hello.size).to_a)
|
26
26
|
end
|
27
27
|
|
28
|
-
it
|
28
|
+
it "returns all indexes with (hello_ary, hello_ary)" do
|
29
29
|
expect(Diff::LCS::Internals.lcs(hello_ary, hello_ary)).to \
|
30
30
|
eq((0...hello_ary.size).to_a)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
describe Diff::LCS,
|
34
|
+
describe Diff::LCS, ".LCS" do
|
35
35
|
include Diff::LCS::SpecHelper::Matchers
|
36
36
|
|
37
|
-
it
|
37
|
+
it "returns the correct compacted values from Diff::LCS.LCS" do
|
38
38
|
res = Diff::LCS.LCS(seq1, seq2)
|
39
39
|
expect(res).to eq(correct_lcs)
|
40
40
|
expect(res.compact).to eq(res)
|
41
41
|
end
|
42
42
|
|
43
|
-
it
|
43
|
+
it "is transitive" do
|
44
44
|
res = Diff::LCS.LCS(seq2, seq1)
|
45
45
|
expect(res).to eq(correct_lcs)
|
46
46
|
expect(res.compact).to eq(res)
|
47
47
|
end
|
48
48
|
|
49
|
-
it
|
50
|
-
expect(Diff::LCS.LCS(hello, hello)).to eq(hello.
|
49
|
+
it "returns %W(h e l l o) with (hello, hello)" do
|
50
|
+
expect(Diff::LCS.LCS(hello, hello)).to eq(hello.chars)
|
51
51
|
end
|
52
52
|
|
53
|
-
it
|
53
|
+
it "returns hello_ary with (hello_ary, hello_ary)" do
|
54
54
|
expect(Diff::LCS.LCS(hello_ary, hello_ary)).to eq(hello_ary)
|
55
55
|
end
|
56
56
|
end
|
data/spec/ldiff_spec.rb
CHANGED
@@ -1,29 +1,31 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
|
-
RSpec.describe
|
5
|
+
RSpec.describe "bin/ldiff" do
|
6
6
|
include CaptureSubprocessIO
|
7
7
|
|
8
|
+
# standard:disable Style/HashSyntax
|
8
9
|
fixtures = [
|
9
|
-
{
|
10
|
-
{
|
11
|
-
{
|
12
|
-
].product([nil,
|
10
|
+
{:name => "output.diff", :left => "aX", :right => "bXaX"},
|
11
|
+
{:name => "output.diff.chef", :left => "old-chef", :right => "new-chef"},
|
12
|
+
{:name => "output.diff.chef2", :left => "old-chef2", :right => "new-chef2"}
|
13
|
+
].product([nil, "-e", "-f", "-c", "-u"]).map { |(fixture, flag)|
|
13
14
|
fixture = fixture.dup
|
14
15
|
fixture[:flag] = flag
|
15
16
|
fixture
|
16
17
|
}
|
18
|
+
# standard:enable Style/HashSyntax
|
17
19
|
|
18
20
|
def self.test_ldiff(fixture)
|
19
21
|
desc = [
|
20
22
|
fixture[:flag],
|
21
23
|
"spec/fixtures/#{fixture[:left]}",
|
22
24
|
"spec/fixtures/#{fixture[:right]}",
|
23
|
-
|
24
|
-
|
25
|
+
"#",
|
26
|
+
"=>",
|
25
27
|
"spec/fixtures/ldiff/#{fixture[:name]}#{fixture[:flag]}"
|
26
|
-
].join(
|
28
|
+
].join(" ")
|
27
29
|
|
28
30
|
it desc do
|
29
31
|
expect(run_ldiff(fixture)).to eq(read_fixture(fixture))
|
@@ -45,7 +47,7 @@ RSpec.describe 'bin/ldiff' do
|
|
45
47
|
def clean_data(data, flag)
|
46
48
|
data =
|
47
49
|
case flag
|
48
|
-
when
|
50
|
+
when "-c", "-u"
|
49
51
|
clean_output_timestamp(data)
|
50
52
|
else
|
51
53
|
data
|
@@ -80,7 +82,7 @@ RSpec.describe 'bin/ldiff' do
|
|
80
82
|
system("ruby -Ilib bin/ldiff #{flag} spec/fixtures/#{left} spec/fixtures/#{right}")
|
81
83
|
end
|
82
84
|
|
83
|
-
expect(stderr).to be_empty if RUBY_VERSION >=
|
85
|
+
expect(stderr).to be_empty if RUBY_VERSION >= "1.9"
|
84
86
|
expect(stdout).not_to be_empty
|
85
87
|
clean_data(stdout, flag)
|
86
88
|
end
|