lib/polytrix/command.rb in polytrix-0.1.0 vs lib/polytrix/command.rb in polytrix-0.1.1
- old
+ new
@@ -85,13 +85,14 @@
end
def solo_setup
suites = {}
solo_basedir = @options.solo
- solo_glob = @options.fetch(:solo_glob, "**/*.{#{SUPPORTED_EXTENSIONS.join(',')}}")
+ solo_glob = @options.fetch('solo_glob', "**/*.{#{SUPPORTED_EXTENSIONS.join(',')}}")
Dir[File.join(solo_basedir, solo_glob)].each do | code_sample |
code_sample = Pathname.new(code_sample)
suite_name = relativize(code_sample.dirname, solo_basedir).to_s
+ suite_name = solo_basedir if suite_name == '.'
scenario_name = code_sample.basename(code_sample.extname).to_s
suite = suites[suite_name] ||= Polytrix::Manifest::Suite.new(samples: [])
suite.samples << scenario_name
end
@manifest = Polytrix.configuration.manifest = Polytrix::Manifest.new(