Sha256: ac69c35fbb58fee09922e52ebf6c7ab40a9ad1b6e035688c13c63cb219349d16

Contents?: true

Size: 770 Bytes

Versions: 48

Compression:

Stored size: 770 Bytes

Contents

# encoding: utf-8

if ENV["BUNDLE_GEMFILE"] == File.expand_path("Gemfile")
  ENV["BUNDLE_GEMFILE"] = "gemfiles/Gemfile.rails-3.2.x"
end

require 'bundler'
Bundler::GemHelper.install_tasks

begin
  targeted_files = ARGV.drop(1)
  file_pattern = targeted_files.empty? ? 'spec/**/*_spec.rb' : targeted_files

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

  RSpec::Core::RakeTask.new(:spec) do |t|
    t.pattern = FileList[file_pattern]
  end

  RSpec.configure do |config|
    config.color_enabled = true
    config.tty = true
    config.formatter = :documentation
  end
rescue LoadError
  require 'spec/rake/spectask'

  puts file_pattern

  Spec::Rake::SpecTask.new(:spec) do |t|
    t.pattern = FileList[file_pattern]
    t.spec_opts += ["--color"]
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
errplane-1.0.0 Rakefile
errplane-0.6.10 Rakefile
errplane-0.6.9 Rakefile
errplane-0.6.8 Rakefile
errplane-0.6.7 Rakefile
errplane-0.6.6 Rakefile
errplane-0.6.5 Rakefile
errplane-0.6.4 Rakefile
errplane-0.6.3 Rakefile
errplane-0.6.2 Rakefile
errplane-0.6.1 Rakefile
errplane-0.6.0 Rakefile
errplane-0.5.30 Rakefile
errplane-0.5.29 Rakefile
errplane-0.5.28 Rakefile
errplane-0.5.27 Rakefile
errplane-0.5.26 Rakefile
errplane-0.5.25 Rakefile
errplane-0.5.24 Rakefile
errplane-0.5.23 Rakefile