Sha256: d72d168860e45e3a90774c1a04594b2f836fc52a4824739227ba8b89d12fc408

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
require 'spree/testing_support/extension_rake'

RSpec::Core::RakeTask.new

task :default do
  if Dir['spec/dummy'].empty?
    Rake::Task[:test_app].invoke
    Dir.chdir('../../')
  end
  Rake::Task[:spec].invoke
end

desc 'Generates a dummy app for testing'
task :test_app do
  ENV['LIB_NAME'] = 'solidus_pagseguro_oficial'
  Rake::Task['extension:test_app'].invoke
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_pagseguro_oficial-1.1.2 Rakefile
solidus_pagseguro_oficial-1.1.1 Rakefile
solidus_pagseguro_oficial-1.1.0 Rakefile