tasks/pact-test.rake in pact-1.1.0.rc2 vs tasks/pact-test.rake in pact-1.1.0.rc3

- old
+ new

@@ -18,10 +18,18 @@ Pact::VerificationTask.new(:term) do | pact | pact.uri './spec/support/term.json' end +RSpec::Core::RakeTask.new('spec:standalone:fail') do | task | + task.pattern = FileList["spec/standalone/**/*_fail_test.rb"] +end + +RSpec::Core::RakeTask.new('spec:standalone:pass') do | task | + task.pattern = FileList["spec/standalone/**/*_pass_test.rb"] +end + namespace :pact do desc 'Runs pact tests against a sample application, testing failure and success.' task :tests => ['pact:verify:stubbing','pact:verify:stubbing_using_allow'] do @@ -40,9 +48,10 @@ fail 'Expected pact to fail' if (result == 0) expect_to_pass "bundle exec rake pact:verify" expect_to_pass "bundle exec rake pact:verify:at[./spec/support/test_app_pass.json]" expect_to_fail "bundle exec rake pact:verify:at[./spec/support/test_app_fail.json]" + expect_to_fail "bundle exec rake spec:standalone:fail" puts "Task pact:tests completed succesfully." end def expect_to_fail command \ No newline at end of file