defra_ruby_validators 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/defra_ruby/validators/companies_house_number_validator.rb +2 -1
- data/lib/defra_ruby/validators/version.rb +1 -1
- metadata +22 -175
- data/spec/defra_ruby/validators/business_type_validator_spec.rb +0 -56
- data/spec/defra_ruby/validators/companies_house_number_validator_spec.rb +0 -124
- data/spec/defra_ruby/validators/companies_house_service_spec.rb +0 -98
- data/spec/defra_ruby/validators/configuration_spec.rb +0 -49
- data/spec/defra_ruby/validators/email_validator_spec.rb +0 -46
- data/spec/defra_ruby/validators/grid_reference_validator_spec.rb +0 -57
- data/spec/defra_ruby/validators/location_validator_spec.rb +0 -56
- data/spec/defra_ruby/validators/past_date_validator_spec.rb +0 -35
- data/spec/defra_ruby/validators/phone_number_validator_spec.rb +0 -59
- data/spec/defra_ruby/validators/position_validator_spec.rb +0 -47
- data/spec/defra_ruby/validators/token_validator_spec.rb +0 -45
- data/spec/defra_ruby/validators/true_false_validator_spec.rb +0 -37
- data/spec/defra_ruby/validators_spec.rb +0 -12
- data/spec/examples.txt +0 -189
- data/spec/spec_helper.rb +0 -87
- data/spec/support/defra_ruby_validators.rb +0 -16
- data/spec/support/helpers/text_generator.rb +0 -17
- data/spec/support/helpers/translator.rb +0 -15
- data/spec/support/i18n.rb +0 -8
- data/spec/support/pry.rb +0 -7
- data/spec/support/shared_examples/validators/characters_validator.rb +0 -29
- data/spec/support/shared_examples/validators/invalid_record.rb +0 -29
- data/spec/support/shared_examples/validators/length_validator.rb +0 -29
- data/spec/support/shared_examples/validators/presence_validator.rb +0 -29
- data/spec/support/shared_examples/validators/selection_validator.rb +0 -40
- data/spec/support/shared_examples/validators/valid_record.rb +0 -12
- data/spec/support/shared_examples/validators/validator.rb +0 -8
- data/spec/support/simplecov.rb +0 -17
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
module Test
|
6
|
-
EmailValidatable = Struct.new(:email) do
|
7
|
-
include ActiveModel::Validations
|
8
|
-
|
9
|
-
validates :email, "defra_ruby/validators/email": true
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module DefraRuby
|
14
|
-
module Validators
|
15
|
-
RSpec.describe EmailValidator, type: :model do
|
16
|
-
|
17
|
-
valid_email = "test@example.com"
|
18
|
-
invalid_email = "foo@bar"
|
19
|
-
|
20
|
-
it_behaves_like("a validator")
|
21
|
-
it_behaves_like(
|
22
|
-
"a presence validator",
|
23
|
-
EmailValidator,
|
24
|
-
Test::EmailValidatable,
|
25
|
-
:email,
|
26
|
-
valid: valid_email
|
27
|
-
)
|
28
|
-
|
29
|
-
describe "#validate_each" do
|
30
|
-
context "when the email is not valid" do
|
31
|
-
context "because the email is not correctly formatted" do
|
32
|
-
validatable = Test::EmailValidatable.new(invalid_email)
|
33
|
-
|
34
|
-
error_message = Helpers::Translator.error_message(EmailValidator, :invalid_format)
|
35
|
-
|
36
|
-
it_behaves_like "an invalid record",
|
37
|
-
validatable: validatable,
|
38
|
-
attribute: :email,
|
39
|
-
error: :invalid_format,
|
40
|
-
error_message: error_message
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
module Test
|
6
|
-
GridReferenceValidatable = Struct.new(:grid_reference) do
|
7
|
-
include ActiveModel::Validations
|
8
|
-
|
9
|
-
validates :grid_reference, "defra_ruby/validators/grid_reference": true
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module DefraRuby
|
14
|
-
module Validators
|
15
|
-
RSpec.describe GridReferenceValidator, type: :model do
|
16
|
-
|
17
|
-
valid_grid_reference = "ST 58337 72855" # Bristol, City of Bristol
|
18
|
-
invalid_grid_reference = "58337 72855"
|
19
|
-
non_coordinate_grid_reference = "AA 12345 67890"
|
20
|
-
|
21
|
-
it_behaves_like("a validator")
|
22
|
-
it_behaves_like(
|
23
|
-
"a presence validator",
|
24
|
-
GridReferenceValidator,
|
25
|
-
Test::GridReferenceValidatable,
|
26
|
-
:grid_reference,
|
27
|
-
valid: valid_grid_reference
|
28
|
-
)
|
29
|
-
|
30
|
-
describe "#validate_each" do
|
31
|
-
context "when the grid reference is not valid" do
|
32
|
-
context "because the grid reference is not correctly formatted" do
|
33
|
-
validatable = Test::GridReferenceValidatable.new(invalid_grid_reference)
|
34
|
-
error_message = Helpers::Translator.error_message(GridReferenceValidator, :invalid_format)
|
35
|
-
|
36
|
-
it_behaves_like "an invalid record",
|
37
|
-
validatable: validatable,
|
38
|
-
attribute: :grid_reference,
|
39
|
-
error: :invalid_format,
|
40
|
-
error_message: error_message
|
41
|
-
end
|
42
|
-
|
43
|
-
context "because the grid reference is not a coordinate" do
|
44
|
-
validatable = Test::GridReferenceValidatable.new(non_coordinate_grid_reference)
|
45
|
-
error_message = Helpers::Translator.error_message(GridReferenceValidator, :invalid)
|
46
|
-
|
47
|
-
it_behaves_like "an invalid record",
|
48
|
-
validatable: validatable,
|
49
|
-
attribute: :grid_reference,
|
50
|
-
error: :invalid,
|
51
|
-
error_message: error_message
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
module Test
|
6
|
-
LocationValidatable = Struct.new(:location) do
|
7
|
-
include ActiveModel::Validations
|
8
|
-
|
9
|
-
validates :location, "defra_ruby/validators/location": true
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module DefraRuby
|
14
|
-
module Validators
|
15
|
-
RSpec.describe LocationValidator, type: :model do
|
16
|
-
|
17
|
-
valid_location = %w[england northern_ireland scotland wales].sample
|
18
|
-
invalid_location = "france"
|
19
|
-
|
20
|
-
it_behaves_like("a validator")
|
21
|
-
it_behaves_like(
|
22
|
-
"a selection validator",
|
23
|
-
LocationValidator,
|
24
|
-
Test::LocationValidatable,
|
25
|
-
:location,
|
26
|
-
valid: valid_location, invalid: invalid_location
|
27
|
-
)
|
28
|
-
|
29
|
-
context "when the value is overseas" do
|
30
|
-
validatable = Test::LocationValidatable.new("overseas")
|
31
|
-
|
32
|
-
context "when overseas_allowed is enabled" do
|
33
|
-
before do
|
34
|
-
allow_any_instance_of(DefraRuby::Validators::BaseValidator).to receive(:options).and_return(allow_overseas: true)
|
35
|
-
end
|
36
|
-
|
37
|
-
it_behaves_like "a valid record", validatable
|
38
|
-
end
|
39
|
-
|
40
|
-
context "when overseas_allowed is not enabled" do
|
41
|
-
before do
|
42
|
-
allow_any_instance_of(DefraRuby::Validators::BaseValidator).to receive(:options).and_return({})
|
43
|
-
end
|
44
|
-
|
45
|
-
error_message = Helpers::Translator.error_message(LocationValidator, :inclusion)
|
46
|
-
|
47
|
-
it_behaves_like "an invalid record",
|
48
|
-
validatable: validatable,
|
49
|
-
attribute: :location,
|
50
|
-
error: :inclusion,
|
51
|
-
error_message: error_message
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
module Test
|
6
|
-
PastDateValidatable = Struct.new(:date) do
|
7
|
-
include ActiveModel::Validations
|
8
|
-
|
9
|
-
validates :date, "defra_ruby/validators/past_date": true
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module DefraRuby
|
14
|
-
module Validators
|
15
|
-
RSpec.describe PastDateValidator, type: :model do
|
16
|
-
|
17
|
-
valid_date = Date.today
|
18
|
-
future_date = Date.today + 1
|
19
|
-
invalid_date = Date.new(20, 2, 2)
|
20
|
-
|
21
|
-
it_behaves_like "a valid record", Test::PastDateValidatable.new(valid_date)
|
22
|
-
it_behaves_like "an invalid record",
|
23
|
-
validatable: Test::PastDateValidatable.new(future_date),
|
24
|
-
attribute: :date,
|
25
|
-
error: :past_date,
|
26
|
-
error_message: Helpers::Translator.error_message(PastDateValidator, :past_date)
|
27
|
-
|
28
|
-
it_behaves_like "an invalid record",
|
29
|
-
validatable: Test::PastDateValidatable.new(invalid_date),
|
30
|
-
attribute: :date,
|
31
|
-
error: :invalid_date,
|
32
|
-
error_message: Helpers::Translator.error_message(PastDateValidator, :invalid_date)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
module Test
|
6
|
-
PhoneNumberValidatable = Struct.new(:phone_number) do
|
7
|
-
include ActiveModel::Validations
|
8
|
-
|
9
|
-
validates :phone_number, "defra_ruby/validators/phone_number": true
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module DefraRuby
|
14
|
-
module Validators
|
15
|
-
RSpec.describe PhoneNumberValidator, type: :model do
|
16
|
-
|
17
|
-
valid_number = [
|
18
|
-
"+441234567890",
|
19
|
-
"01234567890",
|
20
|
-
"+441234-567-890",
|
21
|
-
"01234.567.890",
|
22
|
-
"+441234 567 890"
|
23
|
-
].sample
|
24
|
-
too_long_number = Helpers::TextGenerator.random_number_string(16) # The max length is 15.
|
25
|
-
invalid_number = "#123"
|
26
|
-
|
27
|
-
it_behaves_like("a validator")
|
28
|
-
it_behaves_like(
|
29
|
-
"a presence validator",
|
30
|
-
PhoneNumberValidator,
|
31
|
-
Test::PhoneNumberValidatable,
|
32
|
-
:phone_number,
|
33
|
-
valid: valid_number
|
34
|
-
)
|
35
|
-
it_behaves_like(
|
36
|
-
"a length validator",
|
37
|
-
PhoneNumberValidator,
|
38
|
-
Test::PhoneNumberValidatable,
|
39
|
-
:phone_number,
|
40
|
-
valid: valid_number, invalid: too_long_number
|
41
|
-
)
|
42
|
-
|
43
|
-
describe "#validate_each" do
|
44
|
-
context "when the phone number is not valid" do
|
45
|
-
context "because the phone number is not correctly formatted" do
|
46
|
-
validatable = Test::PhoneNumberValidatable.new(invalid_number)
|
47
|
-
error_message = Helpers::Translator.error_message(PhoneNumberValidator, :invalid_format)
|
48
|
-
|
49
|
-
it_behaves_like "an invalid record",
|
50
|
-
validatable: validatable,
|
51
|
-
attribute: :phone_number,
|
52
|
-
error: :invalid_format,
|
53
|
-
error_message: error_message
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,47 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
module Test
|
6
|
-
PositionValidatable = Struct.new(:position) do
|
7
|
-
include ActiveModel::Validations
|
8
|
-
|
9
|
-
validates :position, "defra_ruby/validators/position": true
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module DefraRuby
|
14
|
-
module Validators
|
15
|
-
RSpec.describe PositionValidator, type: :model do
|
16
|
-
|
17
|
-
valid_position = "Padawan"
|
18
|
-
too_long_position = Helpers::TextGenerator.random_string(PositionValidator::MAX_LENGTH + 1)
|
19
|
-
invalid_position = "**Invalid_@_Position**"
|
20
|
-
empty_position = ""
|
21
|
-
|
22
|
-
it_behaves_like("a validator")
|
23
|
-
it_behaves_like(
|
24
|
-
"a length validator",
|
25
|
-
PositionValidator,
|
26
|
-
Test::PositionValidatable,
|
27
|
-
:position,
|
28
|
-
valid: valid_position, invalid: too_long_position
|
29
|
-
)
|
30
|
-
it_behaves_like(
|
31
|
-
"a characters validator",
|
32
|
-
PositionValidator,
|
33
|
-
Test::PositionValidatable,
|
34
|
-
:position,
|
35
|
-
valid: valid_position, invalid: invalid_position
|
36
|
-
)
|
37
|
-
|
38
|
-
describe "#validate_each" do
|
39
|
-
context "when the position is valid" do
|
40
|
-
context "despite being blank (because position is optional)" do
|
41
|
-
it_behaves_like "a valid record", Test::PositionValidatable.new(empty_position)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
module Test
|
6
|
-
TokenValidatable = Struct.new(:token) do
|
7
|
-
include ActiveModel::Validations
|
8
|
-
|
9
|
-
validates :token, "defra_ruby/validators/token": true
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module DefraRuby
|
14
|
-
module Validators
|
15
|
-
RSpec.describe TokenValidator, type: :model do
|
16
|
-
|
17
|
-
valid_token = Helpers::TextGenerator.random_string(24)
|
18
|
-
invalid_token = "123456"
|
19
|
-
|
20
|
-
it_behaves_like("a validator")
|
21
|
-
it_behaves_like(
|
22
|
-
"a presence validator",
|
23
|
-
TokenValidator,
|
24
|
-
Test::TokenValidatable,
|
25
|
-
:token,
|
26
|
-
valid: valid_token
|
27
|
-
)
|
28
|
-
|
29
|
-
describe "#validate_each" do
|
30
|
-
context "when the token is not valid" do
|
31
|
-
context "because the token is not correctly formatted" do
|
32
|
-
validatable = Test::TokenValidatable.new(invalid_token)
|
33
|
-
error_message = Helpers::Translator.error_message(TokenValidator, :invalid_format)
|
34
|
-
|
35
|
-
it_behaves_like "an invalid record",
|
36
|
-
validatable: validatable,
|
37
|
-
attribute: :token,
|
38
|
-
error: :invalid_format,
|
39
|
-
error_message: error_message
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
module Test
|
6
|
-
TrueFalseValidatable = Struct.new(:attribute) do
|
7
|
-
include ActiveModel::Validations
|
8
|
-
|
9
|
-
validates :attribute, "defra_ruby/validators/true_false": true
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
module DefraRuby
|
14
|
-
module Validators
|
15
|
-
RSpec.describe TrueFalseValidator do
|
16
|
-
invalid_value = "unsure"
|
17
|
-
|
18
|
-
it_behaves_like("a validator")
|
19
|
-
|
20
|
-
it_behaves_like(
|
21
|
-
"a selection validator",
|
22
|
-
TrueFalseValidator,
|
23
|
-
Test::TrueFalseValidatable,
|
24
|
-
:attribute,
|
25
|
-
valid: true, invalid: invalid_value
|
26
|
-
)
|
27
|
-
|
28
|
-
it_behaves_like(
|
29
|
-
"a selection validator",
|
30
|
-
TrueFalseValidator,
|
31
|
-
Test::TrueFalseValidatable,
|
32
|
-
:attribute,
|
33
|
-
valid: false, invalid: invalid_value
|
34
|
-
)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "spec_helper"
|
4
|
-
|
5
|
-
RSpec.describe DefraRuby::Validators do
|
6
|
-
describe "VERSION" do
|
7
|
-
it "is a version string in the correct format" do
|
8
|
-
expect(DefraRuby::Validators::VERSION).to be_a(String)
|
9
|
-
expect(DefraRuby::Validators::VERSION).to match(/\d+\.\d+\.\d+/)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
data/spec/examples.txt
DELETED
@@ -1,189 +0,0 @@
|
|
1
|
-
example_id | status | run_time |
|
2
|
-
------------------------------------------------------------------------------------ | ------ | --------------- |
|
3
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:1:1] | passed | 0.00011 seconds |
|
4
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:1] | passed | 0.00014 seconds |
|
5
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00024 seconds |
|
6
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00013 seconds |
|
7
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00021 seconds |
|
8
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00087 seconds |
|
9
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.0005 seconds |
|
10
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00122 seconds |
|
11
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00019 seconds |
|
12
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00051 seconds |
|
13
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00052 seconds |
|
14
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00106 seconds |
|
15
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:1:1:1] | passed | 0.00063 seconds |
|
16
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:1:1:2] | passed | 0.00058 seconds |
|
17
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:2:1:1] | passed | 0.0007 seconds |
|
18
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:2:1:2] | passed | 0.00096 seconds |
|
19
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:2:1:3] | passed | 0.00099 seconds |
|
20
|
-
./spec/defra_ruby/validators/business_type_validator_spec.rb[1:3:2:1:4:1] | passed | 0.00122 seconds |
|
21
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:1:1] | passed | 0.00021 seconds |
|
22
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:1] | passed | 0.00067 seconds |
|
23
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:1:1:2] | passed | 0.00049 seconds |
|
24
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:1] | passed | 0.00049 seconds |
|
25
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:2:1:2] | passed | 0.00064 seconds |
|
26
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:1] | passed | 0.00087 seconds |
|
27
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:3:1:2] | passed | 0.00128 seconds |
|
28
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:1] | passed | 0.00052 seconds |
|
29
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:1:4:1:2] | passed | 0.00057 seconds |
|
30
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00024 seconds |
|
31
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.0008 seconds |
|
32
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:3] | passed | 0.0007 seconds |
|
33
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:1:1:4:1] | passed | 0.00137 seconds |
|
34
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:1] | passed | 0.00018 seconds |
|
35
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:2] | passed | 0.00059 seconds |
|
36
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:3] | passed | 0.00055 seconds |
|
37
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:2:1:4:1] | passed | 0.00098 seconds |
|
38
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:1] | passed | 0.00058 seconds |
|
39
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:2] | passed | 0.00105 seconds |
|
40
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:3] | passed | 0.00084 seconds |
|
41
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:3:1:4:1] | passed | 0.00137 seconds |
|
42
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:1] | passed | 0.00051 seconds |
|
43
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:2] | passed | 0.00084 seconds |
|
44
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:3] | passed | 0.00085 seconds |
|
45
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:4:1:4:1] | passed | 0.0013 seconds |
|
46
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:2:5:1] | passed | 0.00061 seconds |
|
47
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:1] | passed | 0.00054 seconds |
|
48
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:2] | passed | 0.00135 seconds |
|
49
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:3] | passed | 0.00083 seconds |
|
50
|
-
./spec/defra_ruby/validators/companies_house_number_validator_spec.rb[1:2:3:1:4:1] | passed | 0.00139 seconds |
|
51
|
-
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:1:1] | passed | 0.0211 seconds |
|
52
|
-
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:2:1] | passed | 0.01246 seconds |
|
53
|
-
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:3:1] | passed | 0.01366 seconds |
|
54
|
-
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.01198 seconds |
|
55
|
-
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:4:1:2:1] | passed | 0.01318 seconds |
|
56
|
-
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:5:1:1] | passed | 0.01765 seconds |
|
57
|
-
./spec/defra_ruby/validators/companies_house_service_spec.rb[1:1:5:2:1] | passed | 0.01388 seconds |
|
58
|
-
./spec/defra_ruby/validators/configuration_spec.rb[1:1:1] | passed | 0.00396 seconds |
|
59
|
-
./spec/defra_ruby/validators/configuration_spec.rb[1:2] | passed | 0.0001 seconds |
|
60
|
-
./spec/defra_ruby/validators/configuration_spec.rb[1:3:1:1] | passed | 0.00015 seconds |
|
61
|
-
./spec/defra_ruby/validators/configuration_spec.rb[1:3:2:1] | passed | 0.00016 seconds |
|
62
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:1:1] | passed | 0.0031 seconds |
|
63
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:1] | passed | 0.00012 seconds |
|
64
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00017 seconds |
|
65
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00024 seconds |
|
66
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00024 seconds |
|
67
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00047 seconds |
|
68
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00052 seconds |
|
69
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00123 seconds |
|
70
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:1] | passed | 0.01345 seconds |
|
71
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00176 seconds |
|
72
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00061 seconds |
|
73
|
-
./spec/defra_ruby/validators/email_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.01457 seconds |
|
74
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:1:1] | passed | 0.00011 seconds |
|
75
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:1] | passed | 0.00021 seconds |
|
76
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00032 seconds |
|
77
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00027 seconds |
|
78
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00046 seconds |
|
79
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.0011 seconds |
|
80
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00069 seconds |
|
81
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00132 seconds |
|
82
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00025 seconds |
|
83
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00064 seconds |
|
84
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:3] | passed | 0.00057 seconds |
|
85
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.0013 seconds |
|
86
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:1] | passed | 0.00035 seconds |
|
87
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:2] | passed | 0.00069 seconds |
|
88
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:3] | passed | 0.00118 seconds |
|
89
|
-
./spec/defra_ruby/validators/grid_reference_validator_spec.rb[1:3:1:2:1:4:1] | passed | 0.00139 seconds |
|
90
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:1:1] | passed | 0.00023 seconds |
|
91
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:1] | passed | 0.00014 seconds |
|
92
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00016 seconds |
|
93
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00019 seconds |
|
94
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00023 seconds |
|
95
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.0005 seconds |
|
96
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00055 seconds |
|
97
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00118 seconds |
|
98
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.00032 seconds |
|
99
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00051 seconds |
|
100
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00053 seconds |
|
101
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00386 seconds |
|
102
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:1:1:1] | passed | 0.00117 seconds |
|
103
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:1:1:2] | passed | 0.00076 seconds |
|
104
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:2:1:1] | passed | 0.0008 seconds |
|
105
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:2:1:2] | passed | 0.0014 seconds |
|
106
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:2:1:3] | passed | 0.00096 seconds |
|
107
|
-
./spec/defra_ruby/validators/location_validator_spec.rb[1:3:2:1:4:1] | passed | 0.00132 seconds |
|
108
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:1:1] | passed | 0.00014 seconds |
|
109
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:1:2] | passed | 0.00012 seconds |
|
110
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:2:1] | passed | 0.00016 seconds |
|
111
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:2:2] | passed | 0.00052 seconds |
|
112
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:2:3] | passed | 0.0005 seconds |
|
113
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:2:4:1] | passed | 0.00098 seconds |
|
114
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:3:1] | passed | 0.00033 seconds |
|
115
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:3:2] | passed | 0.00051 seconds |
|
116
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:3:3] | passed | 0.00116 seconds |
|
117
|
-
./spec/defra_ruby/validators/past_date_validator_spec.rb[1:3:4:1] | passed | 0.00112 seconds |
|
118
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:1:1] | passed | 0.00018 seconds |
|
119
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:1] | passed | 0.00022 seconds |
|
120
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00428 seconds |
|
121
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:1:1:2] | passed | 0.02456 seconds |
|
122
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00023 seconds |
|
123
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.0006 seconds |
|
124
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00367 seconds |
|
125
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00122 seconds |
|
126
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:1] | passed | 0.00011 seconds |
|
127
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:1:1:1] | passed | 0.00187 seconds |
|
128
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00177 seconds |
|
129
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00021 seconds |
|
130
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00048 seconds |
|
131
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.00056 seconds |
|
132
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.00103 seconds |
|
133
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:1] | passed | 0.00052 seconds |
|
134
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:2] | passed | 0.00088 seconds |
|
135
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:3] | passed | 0.01128 seconds |
|
136
|
-
./spec/defra_ruby/validators/phone_number_validator_spec.rb[1:4:1:1:1:4:1] | passed | 0.00177 seconds |
|
137
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:1:1] | passed | 0.00011 seconds |
|
138
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:1] | passed | 0.00014 seconds |
|
139
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00018 seconds |
|
140
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00016 seconds |
|
141
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00022 seconds |
|
142
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00093 seconds |
|
143
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00057 seconds |
|
144
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00133 seconds |
|
145
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:1] | passed | 0.00011 seconds |
|
146
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:1] | passed | 0.00016 seconds |
|
147
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00015 seconds |
|
148
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00021 seconds |
|
149
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00053 seconds |
|
150
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.00072 seconds |
|
151
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.00166 seconds |
|
152
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:1] | passed | 0.00014 seconds |
|
153
|
-
./spec/defra_ruby/validators/position_validator_spec.rb[1:4:1:1:1:2] | passed | 0.00016 seconds |
|
154
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:1:1] | passed | 0.00015 seconds |
|
155
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:1] | passed | 0.00018 seconds |
|
156
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00019 seconds |
|
157
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00013 seconds |
|
158
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00034 seconds |
|
159
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00045 seconds |
|
160
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.0009 seconds |
|
161
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00141 seconds |
|
162
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:1] | passed | 0.00032 seconds |
|
163
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:2] | passed | 0.00058 seconds |
|
164
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:3] | passed | 0.0009 seconds |
|
165
|
-
./spec/defra_ruby/validators/token_validator_spec.rb[1:3:1:1:1:4:1] | passed | 0.00128 seconds |
|
166
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:1:1] | passed | 0.00013 seconds |
|
167
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:1] | passed | 0.00011 seconds |
|
168
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:1] | passed | 0.00014 seconds |
|
169
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:1:1:2] | passed | 0.00014 seconds |
|
170
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:1] | passed | 0.00024 seconds |
|
171
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:2] | passed | 0.00058 seconds |
|
172
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:3] | passed | 0.00054 seconds |
|
173
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:1:1:4:1] | passed | 0.00129 seconds |
|
174
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:1] | passed | 0.0004 seconds |
|
175
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:2] | passed | 0.00102 seconds |
|
176
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:3] | passed | 0.00107 seconds |
|
177
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:2:2:2:2:1:4:1] | passed | 0.00153 seconds |
|
178
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:1] | passed | 0.00015 seconds |
|
179
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:1:1:1] | passed | 0.00015 seconds |
|
180
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:1:1:2] | passed | 0.00022 seconds |
|
181
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:1:1:1] | passed | 0.00018 seconds |
|
182
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:1:1:2] | passed | 0.00044 seconds |
|
183
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:1:1:3] | passed | 0.00056 seconds |
|
184
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:1:1:4:1] | passed | 0.00114 seconds |
|
185
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:2:1:1] | passed | 0.00021 seconds |
|
186
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:2:1:2] | passed | 0.0014 seconds |
|
187
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:2:1:3] | passed | 0.00064 seconds |
|
188
|
-
./spec/defra_ruby/validators/true_false_validator_spec.rb[1:3:2:2:2:1:4:1] | passed | 0.0013 seconds |
|
189
|
-
./spec/defra_ruby/validators_spec.rb[1:1:1] | passed | 0.00414 seconds |
|