Sha256: 5ca549797177995d77049ef5169c8367a4d6e82c7e7ff1329809edf65ba73bf4

Contents?: true

Size: 734 Bytes

Versions: 32

Compression:

Stored size: 734 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', "specs/spec.opts"]
    t.spec_files = FileList['specs/**/*_spec.rb']
    t.rcov = ENV['RCOV']
    t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
    t.verbose = true
  end
end

Version data entries

32 entries across 32 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.2.3.1 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.2.3.2 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.2.3.3 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.2.3.4 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.2.3 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.0.1 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.0 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.1.1 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.1 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.2 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.3.1 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.3.2 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.3.3 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.3.4 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.3.5 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.3.6 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.3 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.4 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.5 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.3.6.1 gem_tasks/rspec.rake