Sha256: 466c1de3d628d42521f2ff4bed24eae796b2c6326aa871ca7e7663119f5ac532

Contents?: true

Size: 621 Bytes

Versions: 5

Compression:

Stored size: 621 Bytes

Contents

require 'lib/rtml'

require 'spec/rake/spectask'

Rake.application.instance_variable_get('@tasks').delete('default')

spec_prereq = File.exist?(File.join(RAILS_ROOT, 'config', 'database.yml')) ? "db:test:prepare" : :noop
task :noop do
end

#task :default => :spec
#task :stats => "spec:statsetup"

remove_task :spec
desc "Run all specs in spec directory (excluding plugin specs)"
Spec::Rake::SpecTask.new(:rspec => spec_prereq) do |t|
  t.spec_opts = ['--options', "\"./spec/spec.opts\""]
  #t.ruby_opts = ["-e 'RTML_ROOT = #{RTML_ROOT.inspect}'"]
  t.spec_files = FileList[File.join(RTML_ROOT, 'spec/**/*_spec.rb')]
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 tasks/rspec.rake
rtml-2.0.3 tasks/rspec.rake
rtml-2.0.2 tasks/rspec.rake
rtml-2.0.1 tasks/rspec.rake
rtml-2.0.0.alpha.1 tasks/rspec.rake