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

Version Path
bundlegem-0.0.14 lib/bundlegem/templates/newgem/Rakefile.tt
bundlegem-0.0.14 Rakefile
bundlegem-0.0.13 Rakefile
bundlegem-0.0.13 lib/bundlegem/templates/newgem/Rakefile.tt
bundlegem-0.0.12 lib/bundlegem/templates/newgem/Rakefile.tt
bundlegem-0.0.12 Rakefile
bundlegem-0.0.11 lib/bundlegem/templates/newgem/Rakefile.tt
bundlegem-0.0.11 Rakefile
bundlegem-0.0.10 Rakefile
bundlegem-0.0.10 lib/bundlegem/templates/newgem/Rakefile.tt
bundlegem-0.0.9 Rakefile
bundlegem-0.0.9 lib/bundlegem/templates/newgem/Rakefile.tt
bundlegem-0.0.8 Rakefile
bundlegem-0.0.8 lib/bundlegem/templates/newgem/Rakefile.tt
bundlegem-0.0.7 Rakefile
bundlegem-0.0.7 lib/bundlegem/templates/newgem/Rakefile.tt
aws_one_click_staging-0.1.2 Rakefile
aws_one_click_staging-0.1.1 Rakefile
aws_one_click_staging-0.1.0 Rakefile
aws_one_click_staging-0.0.7 Rakefile