Sha256: 6e63e981f1caf15f4e2a9fa2dfba7acf3f51bb2b0682f2e6f1b9db67378edc63
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
def unable_to_load puts <<-EOS To use rspec for testing you must install rspec gem: gem install rspec EOS nil end def require_spec require 'spec' rescue LoadError require_spec_with_rubygems end def require_spec_with_rubygems require 'rubygems' require 'spec' rescue LoadError unable_to_load end if require_spec begin require 'spec/rake/spectask' rescue LoadError unable_to_load end desc "Run the specs under spec/models" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jeffrafter-cucumber-0.1.10 | gem_tasks/rspec.rake |