Sha256: a174c20139f156f1232697bfe23450c38f866db94ba4f2f892cf18ed11ed23a1

Contents?: true

Size: 777 Bytes

Versions: 8

Compression:

Stored size: 777 Bytes

Contents

begin
  require 'rspec'
  require 'rspec/core/rake_task'

  desc "Run all examples with RCov"
  RSpec::Core::RakeTask.new('spec:rcov') do |t|
    t.rcov = true
  end
  RSpec::Core::RakeTask.new('spec') do |t|
    t.verbose = true
  end

  task :default => :spec
rescue LoadError
  puts "rspec, or one of its dependencies, is not available. Install it with: sudo gem install rspec"
end

file 'spec/configuration.yml' => 'spec/configuration.yml.example' do |task|
  CLEAN.exclude task.name
  src_path = File.expand_path("../../#{task.prerequisites.first}", __FILE__)
  dst_path = File.expand_path("../../#{task.name}", __FILE__)
  cp src_path, dst_path
  sh "sed -i 's/LOCALUSERNAME/#{ENV['USER']}/' #{dst_path}"
end

Rake::Task[:spec].prerequisites << :'spec/configuration.yml'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mysql2-0.2.19b4 tasks/rspec.rake
mysql2-0.3.12b4 tasks/rspec.rake
mysql2-0.2.19b3 tasks/rspec.rake
mysql2-0.3.12b3 tasks/rspec.rake
mysql2-0.3.12b2 tasks/rspec.rake
mysql2-0.2.19b2 tasks/rspec.rake
mysql2-0.3.12b1 tasks/rspec.rake
mysql2-0.2.19b1 tasks/rspec.rake