transpec 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9cd93b43c3629f7c2f09782ee9616100b5147b8
4
- data.tar.gz: 663a9de354fa930e147853a2024da3f904afae5a
3
+ metadata.gz: 29b2afb0177a9182376cf1fe10ccad655e4a7e28
4
+ data.tar.gz: ee45a039ab40a88854a40261ba404de382b2c4d6
5
5
  SHA512:
6
- metadata.gz: 94f4f9b4a08a5d8ca703b9588e3bdda7a63eef38dc3b67b21de62a87c9f60ea09f560151ed08e68994281e0361ce7d2b344635843380c410c053c9f3c14f9f37
7
- data.tar.gz: 65afbbd2ddd3f72b9794d95ed261c6d7f6c4f7f54ea02e415eee927c36c1fa95e6a2a71f8f60cce3e83bb26a65e52dea067a81db6d6352cf09117f4bc512e515
6
+ metadata.gz: 68a1b5c461ccec59168513e353475d1ddf86bae5874fb6adfb426167d7baf67522243d8109b9dd5e6cfa1ed839a5289f06aeef3a6d99947587ad2259c96398d0
7
+ data.tar.gz: ae2da5b9488b7fd0b1a9b6199e40dbb799211ce0118aec80cd5484e3e2200e0ffabcc2849b531a87c2b69843ac8df00f2830c4eb89cdfc8d0186f1f8186dd1c5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Development
4
4
 
5
+ ## v1.3.1
6
+
7
+ * Proceed to conversion even if `rspec` didn't pass in dynamic analysis
8
+
5
9
  ## v1.3.0
6
10
 
7
11
  * Handle singular collection names like `have(n).item` ([#18](https://github.com/yujinakayama/transpec/issues/18))
@@ -146,19 +146,10 @@ module Transpec
146
146
  command = "#{rspec_command} #{paths.shelljoin}"
147
147
 
148
148
  if silent?
149
- rspec_output = `#{command} 2> /dev/null`
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
 
@@ -5,7 +5,7 @@ module Transpec
5
5
  module Version
6
6
  MAJOR = 1
7
7
  MINOR = 3
8
- PATCH = 0
8
+ PATCH = 1
9
9
 
10
10
  def self.to_s
11
11
  [MAJOR, MINOR, PATCH].join('.')
@@ -118,11 +118,27 @@ module Transpec
118
118
  end
119
119
  end
120
120
 
121
- context 'when rspec exited with non-0 status' do
122
- let(:source) { 'This is invalid syntax <' }
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(/Dynamic analysis failed/)
141
+ -> { dynamic_analyzer.analyze }.should raise_error
126
142
  end
127
143
  end
128
144
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transpec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama