Sha256: d36c6c16618405bd50fe523d116d07b77ab91a2583f7082fd2ad05aeeebd44f5
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
#!/usr/bin/env fancy 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: { test_files each: |f| { require: f } Console newline FancySpec SpecTest print_failures }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.4.0 | bin/fspec |