lib/snapdragon/suite.rb in snapdragon-0.1.12 vs lib/snapdragon/suite.rb in snapdragon-0.2.0
- old
+ new
@@ -13,13 +13,18 @@
def use_color?
@options.color
end
+ def pattern
+ @options.pattern
+ end
+
def spec_files
spec_file_objs = []
- @paths.each do |raw_path|
+ @paths << Dir[pattern] if @paths.empty?
+ @paths.flatten.uniq.each do |raw_path|
path = Snapdragon::Path.new(raw_path)
spec_file_objs.concat(path.spec_files)
end
return spec_file_objs