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