Sha256: 78a3e72d5d5a760be28ace74cfccd1f898ad4724391415a0088c18e2b80e489d

Contents?: true

Size: 798 Bytes

Versions: 2

Compression:

Stored size: 798 Bytes

Contents

require "bundler/gem_tasks"

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

Dir.glob("lib/tasks/*.rake").all? do |rake_file|
  load(rake_file)
end

RSpec::Core::RakeTask.new(:spec)

namespace :spec do
  desc "Run all unit specs"
  RSpec::Core::RakeTask.new(:unit) do |t|
    t.pattern = "spec/**/*_spec.rb"
    t.rspec_opts = <<-SPEC_OPTS \
      --require spec_helper    \
      --format progress        \
      --tag ~capybara_feature  \
      --colour
    SPEC_OPTS
  end

  desc "Run all feature specs"
  RSpec::Core::RakeTask.new(:features) do |t|
    t.pattern = "spec/**/*_spec.rb"
    t.rspec_opts = <<-SPEC_OPTS \
      --require spec_helper    \
      --format documentation   \
      --tag capybara_feature    \
      --colour
    SPEC_OPTS
  end
end

task :default => :spec


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-prg-0.1.1 Rakefile
rails-prg-0.1.0 Rakefile