transpec 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/transpec/dynamic_analyzer.rb +1 -10
- data/lib/transpec/version.rb +1 -1
- data/spec/transpec/dynamic_analyzer_spec.rb +19 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b2afb0177a9182376cf1fe10ccad655e4a7e28
|
4
|
+
data.tar.gz: ee45a039ab40a88854a40261ba404de382b2c4d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68a1b5c461ccec59168513e353475d1ddf86bae5874fb6adfb426167d7baf67522243d8109b9dd5e6cfa1ed839a5289f06aeef3a6d99947587ad2259c96398d0
|
7
|
+
data.tar.gz: ae2da5b9488b7fd0b1a9b6199e40dbb799211ce0118aec80cd5484e3e2200e0ffabcc2849b531a87c2b69843ac8df00f2830c4eb89cdfc8d0186f1f8186dd1c5
|
data/CHANGELOG.md
CHANGED
@@ -146,19 +146,10 @@ module Transpec
|
|
146
146
|
command = "#{rspec_command} #{paths.shelljoin}"
|
147
147
|
|
148
148
|
if silent?
|
149
|
-
|
149
|
+
`#{command} 2> /dev/null`
|
150
150
|
else
|
151
151
|
system(command)
|
152
152
|
end
|
153
|
-
|
154
|
-
unless $CHILD_STATUS.exitstatus == 0
|
155
|
-
message = 'Dynamic analysis failed!'
|
156
|
-
if silent?
|
157
|
-
message << "\n"
|
158
|
-
message << rspec_output
|
159
|
-
end
|
160
|
-
fail message
|
161
|
-
end
|
162
153
|
end
|
163
154
|
end
|
164
155
|
|
data/lib/transpec/version.rb
CHANGED
@@ -118,11 +118,27 @@ module Transpec
|
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
121
|
-
context 'when rspec
|
122
|
-
let(:source)
|
121
|
+
context 'when rspec did not pass' do
|
122
|
+
let(:source) do
|
123
|
+
<<-END
|
124
|
+
describe [1, 2] do
|
125
|
+
it 'has 2 items' do
|
126
|
+
expect(subject).to have(1).items
|
127
|
+
end
|
128
|
+
end
|
129
|
+
END
|
130
|
+
end
|
131
|
+
|
132
|
+
it 'does not raise error' do
|
133
|
+
-> { dynamic_analyzer.analyze }.should_not raise_error
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
context 'when analysis result data file is not found' do
|
138
|
+
let(:source) { 'exit!' }
|
123
139
|
|
124
140
|
it 'raises error' do
|
125
|
-
-> { dynamic_analyzer.analyze }.should raise_error
|
141
|
+
-> { dynamic_analyzer.analyze }.should raise_error
|
126
142
|
end
|
127
143
|
end
|
128
144
|
|