tasks/pact-test.rake in pact-1.0.1 vs tasks/pact-test.rake in pact-1.0.2
- old
+ new
@@ -2,16 +2,17 @@
namespace :pact do
desc 'Runs pact tests against a sample application, testing failure and success.'
task :tests do
+ silent = true
puts "Running task pact:tests"
# Run these specs silently, otherwise expected failures will be written to stdout and look like unexpected failures.
- result = Pact::Provider::PactSpecRunner.run([{ uri: './spec/support/test_app_pass.json', support_file: './spec/support/pact_rake_support.rb', consumer: 'some-test-consumer' }], silent: true)
+ result = Pact::Provider::PactSpecRunner.run([{ uri: './spec/support/test_app_pass.json', support_file: './spec/support/pact_rake_support.rb', consumer: 'some-test-consumer' }], silent: silent)
fail 'Expected pact to pass' unless (result == 0)
- result = Pact::Provider::PactSpecRunner.run([{ uri: './spec/support/test_app_fail.json', support_file: './spec/support/pact_rake_support.rb' }], silent: true)
+ result = Pact::Provider::PactSpecRunner.run([{ uri: './spec/support/test_app_fail.json', support_file: './spec/support/pact_rake_support.rb' }], silent: silent)
fail 'Expected pact to fail' if (result == 0)
puts "Task pact:tests completed succesfully."
end
\ No newline at end of file