Sha256: d14414842728f307858abe545e8408600a2e5d4bc40eb62aa4b5554c73631b25
Contents?: true
Size: 748 Bytes
Versions: 25
Compression:
Stored size: 748 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.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
25 entries across 25 versions & 2 rubygems