Sha256: c371e5b50ee5d9c7a7261d5f7cdfa1e8b5fb2839b23af6a47379652926c21323
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
def unable_to_load STDERR.puts <<-EOS To use rspec for testing you must install rspec gem: gem install rspec EOS nil end def require_spec require 'spec/expectations' rescue LoadError require_spec_with_rubygems end def require_spec_with_rubygems require 'rubygems' require 'spec/expectations' rescue LoadError unable_to_load end if require_spec begin require 'spec/rake/spectask' rescue LoadError unable_to_load end desc "Run the Cucumber specs" Spec::Rake::SpecTask.new do |t| t.spec_opts = ['--options', "spec/spec.opts"] t.spec_files = FileList['spec/**/*_spec.rb'] t.fail_on_error = false #t.rcov = true t.rcov = ENV['RCOV'] t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kosmas58-cucumber-0.1.100.5 | gem_tasks/rspec.rake |
kosmas58-cucumber-0.2.0 | gem_tasks/rspec.rake |