Sha256: 9d7ee0e77194a25c5c3153290b2e7edf410a473b5d61d4b3951efcfb8f74f373

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

begin
  require 'spec/rake/spectask'
rescue LoadError
  puts "RSpec not available. Install it with: sudo gem install rspec"
end

namespace :spec do
  namespace :suite do
    desc ""
    Spec::Rake::SpecTask.new(:core) do |spec|
      spec.spec_files = ['spec/spectie_spec.rb', 'spec/spectie/story_example_group_methods_spec.rb']
    end

    desc ""
    Spec::Rake::SpecTask.new(:rails) do |spec|
      spec.spec_files = ['spec/spectie/rails_story_example_group_spec.rb']
    end

    desc ""
    Spec::Rake::SpecTask.new(:selenium) do |spec|
      spec.spec_files = ['spec/spectie/selenium/**/*_spec.rb']
    end
  end

  (all = [:core, :rails, :selenium]).each do |example_suite|
    desc "Run #{example_suite} example suite"
    task example_suite do
      puts "\nRunning suite: #{example_suite}"
      Rake.application["spec:suite:#{example_suite}".to_sym].invoke
    end
  end

  task :all => all

#  Spec::Rake::SpecTask.new(:rcov) do |spec|
#  #    spec.libs << 'lib'
#    spec.pattern = 'spec/**/*_spec.rb'
#    spec.rcov = true
#  end
end

task :default => ["spec:core", "spec:rails"]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spectie-0.0.4 rake_tasks/spec.rake
spectie-0.0.3 rake_tasks/spec.rake