Sha256: cc1a6998c02e958a6eed717d2f6822790218f95cf57e9bfbbebc35ea0d6699fa

Contents?: true

Size: 671 Bytes

Versions: 36

Compression:

Stored size: 671 Bytes

Contents

require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'
require 'spree/testing_support/common_rake'

RSpec::Core::RakeTask.new

task default: :spec

desc "Generates a dummy app for testing"
task :test_app do
  ENV['LIB_NAME'] = 'spree/api'
  Rake::Task['common:test_app'].invoke
end

namespace :rswag do
  namespace :specs do
    desc 'Generate Swagger JSON files from integration specs'
    RSpec::Core::RakeTask.new('swaggerize') do |t|
      t.pattern = ENV.fetch(
        'PATTERN',
        'spec/integration/**/*_spec.rb'
      )

      t.rspec_opts = ['--format Rswag::Specs::SwaggerFormatter', '--order defined']
    end
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
spree_api-4.10.1 Rakefile
spree_api-4.10.0 Rakefile
spree_api-4.9.0 Rakefile
spree_api-4.8.3 Rakefile
spree_api-4.8.2 Rakefile
spree_api-4.7.3 Rakefile
spree_api-4.6.6 Rakefile
spree_api-4.5.5 Rakefile
spree_api-4.3.3 Rakefile
spree_api-4.4.1 Rakefile
spree_api-4.5.4 Rakefile
spree_api-4.6.5 Rakefile
spree_api-4.7.2 Rakefile
spree_api-4.7.1 Rakefile
spree_api-4.6.4 Rakefile
spree_api-4.7.0 Rakefile
spree_api-4.6.3 Rakefile
spree_api-4.6.2 Rakefile
spree_api-4.6.1 Rakefile
spree_api-4.6.0 Rakefile