@@ -9,7 +9,7 @@ module Pact
9
9
@pact_uri = 'http://example.org/pact.json'
10
10
@task_name = 'pact:verify:pact_rake_spec'
11
11
@task_name_with_explict_pact_helper = 'pact:verify:pact_rake_spec_with_explict_pact_helper'
12
- @task_name_wip = 'pact:verify:pact_rake_spec_wip '
12
+ @task_name_ignore_failures = 'pact:verify:pact_rake_spec_ignore_failures '
13
13
@consumer = 'some-consumer'
14
14
@criteria = { :description => /wiffle/ }
15
15
@@ -21,9 +21,9 @@ module Pact
21
21
pact . uri @pact_uri
22
22
end
23
23
24
- VerificationTask . new ( :pact_rake_spec_wip ) do | pact |
24
+ VerificationTask . new ( :pact_rake_spec_ignore_failures ) do | pact |
25
25
pact . uri @pact_uri
26
- pact . wip = true
26
+ pact . ignore_failures = true
27
27
end
28
28
end
29
29
@@ -47,23 +47,23 @@ module Pact
47
47
describe 'execute' do
48
48
context "with no explicit pact_helper" do
49
49
it 'verifies the pacts using the TaskHelper' do
50
- expect ( Pact ::TaskHelper ) . to receive ( :execute_pact_verify ) . with ( @pact_uri , nil , nil , { wip : false } )
50
+ expect ( Pact ::TaskHelper ) . to receive ( :execute_pact_verify ) . with ( @pact_uri , nil , nil , { ignore_failures : false } )
51
51
Rake ::Task [ @task_name ] . execute
52
52
end
53
53
end
54
54
55
55
context "with an explict pact_helper" do
56
56
let ( :verification_config ) { [ uri : @pact_uri , pact_helper : @pact_helper ] }
57
57
it 'verifies the pacts using specified pact_helper' do
58
- expect ( Pact ::TaskHelper ) . to receive ( :execute_pact_verify ) . with ( @pact_uri , @pact_helper , nil , { wip : false } )
58
+ expect ( Pact ::TaskHelper ) . to receive ( :execute_pact_verify ) . with ( @pact_uri , @pact_helper , nil , { ignore_failures : false } )
59
59
Rake ::Task [ @task_name_with_explict_pact_helper ] . execute
60
60
end
61
61
end
62
62
63
- context "with wip : true" do
64
- it 'verifies the pacts with wip : true' do
65
- expect ( Pact ::TaskHelper ) . to receive ( :execute_pact_verify ) . with ( @pact_uri , anything , anything , { wip : true } )
66
- Rake ::Task [ @task_name_wip ] . execute
63
+ context "with ignore_failures : true" do
64
+ it 'verifies the pacts with ignore_failures : true' do
65
+ expect ( Pact ::TaskHelper ) . to receive ( :execute_pact_verify ) . with ( @pact_uri , anything , anything , { ignore_failures : true } )
66
+ Rake ::Task [ @task_name_ignore_failures ] . execute
67
67
end
68
68
end
69
69
0 commit comments