Sha256: 51ad56218cadb710c5b003d2c9d5ad1088076b76ab94110003bfb46ed4ab5969
Contents?: true
Size: 1.28 KB
Versions: 53
Compression:
Stored size: 1.28 KB
Contents
require 'bundler/gem_tasks' begin require 'rspec' require 'rspec/core' require 'rspec/core/rake_task' require 'octorelease' require 'rubocop/rake_task' rescue LoadError end require 'awspec' types = Awspec::Helper::Type::TYPES.map do |type| 'spec:' + type end if defined?(RSpec) task spec: 'spec:all' namespace :spec do task all: ['spec:type', 'spec:account', 'spec:core', 'spec:generator_spec', 'spec:generator_doc', 'spec:rubocop', 'spec:helper'] task type: types Awspec::Helper::Type::TYPES.map do |type| RSpec::Core::RakeTask.new(type) do |t| t.pattern = 'spec/type/' + type + '_spec.rb' end end RSpec::Core::RakeTask.new(:account) do |t| t.pattern = 'spec/type/account_spec.rb' end RSpec::Core::RakeTask.new(:core) do |t| t.pattern = 'spec/core/*_spec.rb' end RSpec::Core::RakeTask.new(:generator_spec) do |t| t.pattern = 'spec/generator/spec/*_spec.rb' end RSpec::Core::RakeTask.new(:generator_doc) do |t| t.pattern = 'spec/generator/doc/*_spec.rb' end RSpec::Core::RakeTask.new(:helper) do |t| t.pattern = 'spec/lib/awspec/helper/*_spec.rb' end RuboCop::RakeTask.new end end
Version data entries
53 entries across 53 versions & 2 rubygems