lib/teaspoon/suite.rb in teaspoon-0.9.0 vs lib/teaspoon/suite.rb in teaspoon-0.9.1

- old
+ new

@@ -99,10 +99,10 @@ def normalize_js_extension(filename) filename.gsub(".erb", "").gsub(/(\.js\.coffee|\.coffee)$/, ".js") end def glob - @glob ||= Dir[config.matcher.present? ? Teaspoon.configuration.root.join(config.matcher) : ""] + @glob ||= Dir[config.matcher.present? ? Teaspoon.configuration.root.join(config.matcher) : ""].sort! end def suite_configuration config = Teaspoon.configuration.suite_configs[name] raise Teaspoon::UnknownSuite, "Unknown suite \"#{name}\"" unless config.present?