Sha256: 055be34c89d49d360e7d3bae27ec0b6157a1c9dcb4dbb2018052ad8c95479a55
Contents?: true
Size: 524 Bytes
Versions: 15
Compression:
Stored size: 524 Bytes
Contents
Execute.define_task do begin require 'rspec/core/rake_task' desc "spec", "Run source adapter specs" def spec files = File.join('spec','**','*_spec.rb') pattern = FileList[files] rspec_opts = "-fn -b --color" cmd = "bundle exec rspec #{pattern} #{rspec_opts}" puts cmd exec cmd # Another way run rspec examples # RSpec::Core::Runner.run(pattern, $stderr, $stdout) end rescue Exception => e puts "Run source adapter specs error: #{e.inspect}" end end
Version data entries
15 entries across 15 versions & 1 rubygems