diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-20 12:43:44 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2021-12-20 12:43:44 -0500 |
commit | c2a5b875a81c5882ed3de16b7aeaae2ac989e3e6 (patch) | |
tree | 3b8583e8c0dd593b8bd126cd1c0a5b37f571d4f2 | |
parent | 8c6de92fcc4f3dc416828a1806043e0d775ec9d0 (diff) | |
download | diff-lcs-master.tar.gz |
Ensure that `rake test` runs `rake spec`master
-rw-r--r-- | Rakefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -85,11 +85,11 @@ end desc "Run all specifications" RSpec::Core::RakeTask.new(:spec) do |t| - rspec_dirs = %w(spec lib) - t.rspec_opts = [] - t.rspec_opts << "-I#{rspec_dirs.join(":")}" unless rspec_dirs.empty? + rspec_dirs = %w(spec lib).join(":") + t.rspec_opts = ["-I#{rspec_dirs}"] end task :default => :spec +task :test => :spec if RUBY_VERSION >= '2.0' && RUBY_ENGINE == 'ruby' namespace :spec do |