Sha256: d183f74f80b57da520f51d34b4548c9ef0bb64fc8529e208ada60386fcdf9b1c
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
#!/usr/bin/env fancy require: "fancy_spec" test_dir = "tests" { test_dir = ARGV[1] } if: $ ARGV[1] test_files = Directory list: "#{test_dir}/**/*.fy" if: (test_files empty?) then: { if: (Directory exists?: test_dir) then: { "No test files found. Add them to the tests/ directory." println } else: { "No tests/ directory found. Create it!" println } } else: { start = Time now test_files each: |f| { require: f } Console newline FancySpec SpecTest print_failures: start }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.6.0 | bin/fspec |
fancy-0.5.0 | bin/fspec |