Sha256: 812009b398ade6c0315d4f60a2f1d4118a095f47f0bbb7c43308b30cabefc2f8

Contents?: true

Size: 630 Bytes

Versions: 34

Compression:

Stored size: 630 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']
  end
end

Version data entries

34 entries across 34 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.1.14.1 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.14.2 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.15 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.16.1 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.16.2 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.16.3 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.16.4 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.16.5 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.16 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.1 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.10 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.11 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.12 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.13 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.14 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.15 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.17 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.18 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.19 gem_tasks/rspec.rake
aslakhellesoy-cucumber-0.1.99.2 gem_tasks/rspec.rake