Sha256: 0cb12c0ad36aa83bbdf2271a370b7c9ae7c6ce527565e8fb3ee10325ea79bc02

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'generative/rake_task'

task default: [:spec, :generative, :acceptance]
task ci: [:spec, :generative]

RSpec::Core::RakeTask.new
Generative::RakeTask.new

desc "Verify all spec commands behave properly"
task :acceptance do
  [
    ['rspec', '6'],
    ['rake spec', '6'],
    ['rake generative', '30000'],
    ['bin/generative', '30000']
  ].each do |command, example_count|
    result = system %{#{command} | grep "#{example_count} examples, 0 failures"}

    unless result
      fail "`#{command}` had an incorrect example count"
    end
  end

  puts "Yay!"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
generative-0.2.0.pre2 Rakefile