File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -246,10 +246,10 @@ def self.list(options = {})
246
246
raise PDK ::CLI ::FatalError , format ( 'Failed to find valid JSON in output from rspec: %{output}' , output : output [ :stdout ] ) unless rspec_json
247
247
248
248
if rspec_json [ 'examples' ] . empty?
249
- rspec_message = rspec_json [ 'messages' ] [ 0 ]
250
- return [ ] if rspec_message == 'No examples found.'
249
+ return [ ] if rspec_json [ 'messages' ] [ 0 ] == 'No examples found.'
250
+ return [ ] if rspec_json [ 'messages' ] . include? ( " \n All examples were filtered out" )
251
251
252
- raise PDK ::CLI ::FatalError , format ( 'Unable to enumerate examples. rspec reported: %{message}' , message : rspec_message )
252
+ raise PDK ::CLI ::FatalError , format ( 'Unable to enumerate examples. rspec reported: %{message}' , message : rspec_json [ 'messages' ] )
253
253
else
254
254
examples = [ ]
255
255
rspec_json [ 'examples' ] . each do |example |
Original file line number Diff line number Diff line change 47
47
require 'spec_helper'
48
48
49
49
RSpec.describe 'passing test' do
50
- on_supported_os(:facterversion => '2.4.6').each do |os, facts|
51
- context "On OS \# {os}" do
52
- it 'should pass' do
53
- expect(true).to eq(true)
54
- end
50
+ context 'On OS' do
51
+ it 'should pass' do
52
+ expect(true).to eq(true)
55
53
end
56
54
end
57
55
end
You can’t perform that action at this time.
0 commit comments