Sha256: 780694874ccaf046c934904fb933de0ac69acc99474330f67740bdb1cf5f08db
Contents?: true
Size: 577 Bytes
Versions: 3
Compression:
Stored size: 577 Bytes
Contents
require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.pattern = "spec/lib/**/*_spec.rb" end Rake::TestTask.new (:integration) do |t| t.pattern = "spec/integration/**/*.rb" end namespace :pact do desc "Ensure pact file is written" task 'test:pactfile' do pact_path = './spec/pacts/my_service_consumer-my_service_provider.json' FileUtils.rm_rf pact_path Rake::Task['integration'].execute fail "Did not find expected pact file at #{pact_path}" unless File.exist?(pact_path) end end task :default => [:test, :integration, :'pact:test:pactfile']
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pact-consumer-minitest-1.0.1 | tasks/test.rake |
pact-consumer-minitest-1.0.0 | tasks/test.rake |
pact-consumer-minitest-0.0.1 | tasks/test.rake |