Sha256: 3af2aa627311e07719d5d17762e4c008c57e968a04072a06510607a2e7cc4e54
Contents?: true
Size: 923 Bytes
Versions: 36
Compression:
Stored size: 923 Bytes
Contents
require 'rake' require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' desc "Run unit specs" RSpec::Core::RakeTask.new(:unit) do |t| t.rspec_opts = %w(-fd -c) t.pattern = "./spec/unit/**/*_spec.rb" end desc "Run integration specs that are very high level" RSpec::Core::RakeTask.new(:integration) do |t| t.rspec_opts = %w(-fd -c) t.pattern = "./spec/integration/**/*_spec.rb" end desc "Run all specs" RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = %w(-fd -c) end # this is for running tests that you've marked current... eg: it 'should work', :current => true do RSpec::Core::RakeTask.new(:current) do |spec| spec.pattern = 'spec/**/*_spec.rb' spec.rspec_opts = ['--tag current'] end # alias for current RSpec::Core::RakeTask.new(:c) do |spec| spec.pattern = 'spec/**/*_spec.rb' spec.rspec_opts = ['--tag current'] end task :default => :spec task :test => :spec
Version data entries
36 entries across 27 versions & 3 rubygems