Sha256: 7aaeb4544e2c727170e1f34cacfd624af0130ed6c0f9571c4a88e48492d66b1f

Contents?: true

Size: 795 Bytes

Versions: 11

Compression:

Stored size: 795 Bytes

Contents

require 'rake/testtask'
require 'rspec/core/rake_task'
require 'bundler'
require 'ci/reporter/rake/rspec'
Bundler::GemHelper.install_tasks

Dir['tasks/**/*.rake'].each { |rake| load rake }

desc "Default: run all specs"
task :default => :all_specs

desc "Run all specs"
task :all_specs do
  Rake::Task["spec"].execute
  Rake::Task["dummy_specs"].execute
end

desc "run unit tests in dummy apps"
task :dummy_specs do
  Dir['spec/test_apps/**/Rakefile'].each do |rakefile|
    directory_name = File.dirname(rakefile)
    sh <<-CMD
      cd #{directory_name} && bundle exec rake
    CMD
  end
end

desc "run unit tests for gem only"
RSpec::Core::RakeTask.new('spec') do |t|
 t.pattern = '**/gem_spec/*_spec.rb'				  
end


if ENV["RAILS_ENV"] != "production"
  require 'ci/reporter/rake/rspec'
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
cloudfuji-0.0.46 Rakefile
cloudfuji-0.0.45 Rakefile
cloudfuji-0.0.44 Rakefile
cloudfuji-0.0.43 Rakefile
cloudfuji-0.0.42 Rakefile
cloudfuji-0.0.41 Rakefile
cloudfuji-0.0.40 Rakefile
cloudfuji-0.0.39 Rakefile
cloudfuji-0.0.38 Rakefile
cloudfuji-0.0.37 Rakefile
bushido-0.0.36 Rakefile