Sha256: b94a17ebbb667680d5e88a47fa94d78a85c62abccd464f16a2b50593590e1f37
Contents?: true
Size: 366 Bytes
Versions: 3
Compression:
Stored size: 366 Bytes
Contents
class Test < Array def self.discover_commands commands # rspec tests, 'rspec --pattern="**/*.spec"' if(Dir.glob("**/*spec.rb").length > 0) commands["test"] = Test.new if(!commands.has_key?("test")) commands["test"].add 'rspec --pattern="**/*.spec"' end end def add command self << command if(!include?(command)) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dev_tasks-0.0.6 | lib/test.rb |
dev_tasks-0.0.5 | lib/test.rb |
dev_tasks-0.0.4 | lib/test.rb |