govuk-content-schema-test-helpers 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86714c339ce34aef53a446ed95e78eadf64244b1
|
4
|
+
data.tar.gz: 62f4df66147eb83d8eea6f65a8e72bdcae0a6ef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: effa83b91f2b77d16df3a9d4eaebabf7eb3b41f1da5ec2d6a20d50e0e362cf6c15313ea7dc353178744265730f07ead1bc5eccdb2746065fed43d1ea34ef9708
|
7
|
+
data.tar.gz: 1c82c0f72755f5350afd4d38edc510fd92a481b49cb217eb284a37cd4d0001a8c985a9527220183b31db3ac6286d5a984ee673d0879f1c45a59f9f21ad73e165
|
@@ -12,10 +12,13 @@ module GovukContentSchemaTestHelpers
|
|
12
12
|
"to be valid against '#{schema_name}' schema. Errors: #{validator.errors}"
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
if Gem.loaded_specs['rspec-expectations'].version < Gem::Version.new('3.0.0')
|
16
|
+
# Required for a helpful message with RSpec 2
|
17
|
+
# Generates a deprecation warning on 3.2.0
|
18
|
+
failure_message_for_should do |actual|
|
19
|
+
validator = Validator.new(schema_name, actual)
|
20
|
+
"to be valid against '#{schema_name}' schema. Errors: #{validator.errors}"
|
21
|
+
end
|
19
22
|
end
|
20
23
|
end
|
21
24
|
end
|