lib/polytrix/command.rb in polytrix-0.1.1 vs lib/polytrix/command.rb in polytrix-0.1.2

- old
+ new

@@ -86,10 +86,10 @@ def solo_setup suites = {} solo_basedir = @options.solo solo_glob = @options.fetch('solo_glob', "**/*.{#{SUPPORTED_EXTENSIONS.join(',')}}") - Dir[File.join(solo_basedir, solo_glob)].each do | code_sample | + Dir[File.join(solo_basedir, solo_glob)].sort.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: [])