@@ -61,7 +61,7 @@ module Verifications
61
61
subject { Repository . new . find "Consumer1" , "Provider1" , pact . pact_version_sha , 2 }
62
62
63
63
it "finds the latest verifications for the given consumer version" do
64
- expect ( subject . provider_version ) . to eq "3.7.4"
64
+ expect ( subject . provider_version_number ) . to eq "3.7.4"
65
65
expect ( subject . consumer_name ) . to eq "Consumer1"
66
66
expect ( subject . provider_name ) . to eq "Provider1"
67
67
expect ( subject . pact_version_sha ) . to eq pact . pact_version_sha
@@ -95,8 +95,8 @@ module Verifications
95
95
subject { Repository . new . find_latest_verifications_for_consumer_version ( "Consumer1" , "1.2.3" ) }
96
96
97
97
it "finds the latest verifications for the given consumer version" do
98
- expect ( subject . first . provider_version ) . to eq "7.8.9"
99
- expect ( subject . last . provider_version ) . to eq "6.5.4"
98
+ expect ( subject . first . provider_version_number ) . to eq "7.8.9"
99
+ expect ( subject . last . provider_version_number ) . to eq "6.5.4"
100
100
end
101
101
end
102
102
@@ -116,7 +116,7 @@ module Verifications
116
116
subject { Repository . new . find_latest_verification_for ( "Consumer1" , "Provider1" ) }
117
117
118
118
it "finds the latest verifications for the given consumer version" do
119
- expect ( subject . provider_version ) . to eq "7.8.9"
119
+ expect ( subject . provider_version_number ) . to eq "7.8.9"
120
120
end
121
121
end
122
122
@@ -142,7 +142,7 @@ module Verifications
142
142
subject { Repository . new . find_latest_verification_for ( "Consumer1" , "Provider1" ) }
143
143
144
144
it "finds the latest verifications for the given consumer version" do
145
- expect ( subject . provider_version ) . to eq "7.8.9"
145
+ expect ( subject . provider_version_number ) . to eq "7.8.9"
146
146
end
147
147
end
148
148
@@ -173,7 +173,7 @@ module Verifications
173
173
subject { Repository . new . find_latest_verification_for ( "Consumer1" , "Provider1" , 'prod' ) }
174
174
175
175
it "finds the latest verifications for the given consumer version with the specified tag" do
176
- expect ( subject . provider_version ) . to eq "5.4.3"
176
+ expect ( subject . provider_version_number ) . to eq "5.4.3"
177
177
end
178
178
179
179
context "when no verification exists" do
@@ -212,7 +212,7 @@ module Verifications
212
212
subject { Repository . new . find_latest_verification_for ( "Consumer1" , "Provider1" , :untagged ) }
213
213
214
214
it "finds the latest verifications for the given consumer version with no tag" do
215
- expect ( subject . provider_version ) . to eq "5.4.3"
215
+ expect ( subject . provider_version_number ) . to eq "5.4.3"
216
216
end
217
217
end
218
218
end
0 commit comments