dm-validations 1.1.0 → 1.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +8 -8
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/dm-validations.gemspec +29 -139
- data/lib/dm-validations.rb +51 -103
- data/lib/dm-validations/auto_validate.rb +104 -61
- data/lib/dm-validations/context.rb +66 -0
- data/lib/dm-validations/contextual_validators.rb +164 -53
- data/lib/dm-validations/formats/email.rb +41 -23
- data/lib/dm-validations/formats/url.rb +6 -1
- data/lib/dm-validations/support/object.rb +13 -0
- data/lib/dm-validations/validation_errors.rb +27 -19
- data/lib/dm-validations/validators/absent_field_validator.rb +11 -11
- data/lib/dm-validations/validators/acceptance_validator.rb +15 -13
- data/lib/dm-validations/validators/block_validator.rb +12 -11
- data/lib/dm-validations/validators/confirmation_validator.rb +23 -16
- data/lib/dm-validations/validators/format_validator.rb +45 -23
- data/lib/dm-validations/validators/generic_validator.rb +85 -38
- data/lib/dm-validations/validators/length_validator.rb +61 -26
- data/lib/dm-validations/validators/method_validator.rb +13 -17
- data/lib/dm-validations/validators/numeric_validator.rb +35 -35
- data/lib/dm-validations/validators/primitive_validator.rb +11 -12
- data/lib/dm-validations/validators/required_field_validator.rb +11 -13
- data/lib/dm-validations/validators/uniqueness_validator.rb +15 -14
- data/lib/dm-validations/validators/within_validator.rb +30 -12
- data/spec/fixtures/bill_of_landing.rb +5 -0
- data/spec/fixtures/llama_spaceship.rb +15 -0
- data/spec/integration/automatic_validation/custom_messages_for_inferred_validation_spec.rb +10 -0
- data/spec/integration/automatic_validation/disabling_inferred_validation_spec.rb +8 -0
- data/spec/integration/automatic_validation/inferred_length_validation_spec.rb +8 -0
- data/spec/integration/automatic_validation/inferred_uniqueness_validation_spec.rb +6 -2
- data/spec/integration/automatic_validation/inferred_within_validation_spec.rb +6 -0
- data/spec/integration/datamapper_models/association_validation_spec.rb +5 -2
- data/spec/integration/dirty_attributes/dirty_attributes_spec.rb +13 -0
- data/spec/integration/format_validator/email_format_validator_spec.rb +13 -5
- data/spec/integration/format_validator/url_format_validator_spec.rb +28 -2
- data/spec/integration/required_field_validator/association_spec.rb +5 -1
- data/spec/public/resource_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- data/spec/unit/contextual_validators/emptiness_spec.rb +10 -10
- data/spec/unit/contextual_validators/execution_spec.rb +4 -4
- data/spec/unit/validators/within_validator_spec.rb +23 -0
- metadata +81 -146
- data/lib/dm-validations/support/context.rb +0 -93
@@ -10,7 +10,7 @@ describe 'DataMapper::Validations::Fixtures::BillOfLading' do
|
|
10
10
|
{ :id => 1, :doc_no => 'A1234', :email => 'user@example.com', :url => 'http://example.com' }
|
11
11
|
end
|
12
12
|
|
13
|
-
[ 'http:// example.com', 'ftp://example.com', 'http://.com', 'http://', 'test', '...',
|
13
|
+
invalid_uris = [ 'http:// example.com', 'ftp://example.com', 'http://.com', 'http://', 'test', '...',
|
14
14
|
# these are valid URIs from RFC perspective,
|
15
15
|
# but too often not the case for web apps
|
16
16
|
#
|
@@ -18,7 +18,9 @@ describe 'DataMapper::Validations::Fixtures::BillOfLading' do
|
|
18
18
|
# RFC compliant so it can be used, for instance,
|
19
19
|
# for internal apps that may refer to local domains
|
20
20
|
# like http://backend:8080
|
21
|
-
"http://localhost:4000", "http://localhost" ]
|
21
|
+
"http://localhost:4000", "http://localhost" ]
|
22
|
+
|
23
|
+
invalid_uris.each do |uri|
|
22
24
|
describe "with URL of #{uri}" do
|
23
25
|
before :all do
|
24
26
|
@model = DataMapper::Validations::Fixtures::BillOfLading.new(valid_attributes.merge(:url => uri))
|
@@ -32,6 +34,22 @@ describe 'DataMapper::Validations::Fixtures::BillOfLading' do
|
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
37
|
+
# http:// throws an exception in Addressable::URI, so it wouldn't make it to the validation part anyway :)
|
38
|
+
(invalid_uris - ['http://']).each do |uri|
|
39
|
+
describe "with dm-type URI of #{uri}" do
|
40
|
+
before(:all) do
|
41
|
+
@model = DataMapper::Validations::Fixtures::SurrenderBillOfLading.new(valid_attributes.merge(:bank_url => uri))
|
42
|
+
end
|
43
|
+
|
44
|
+
it_should_behave_like "invalid model"
|
45
|
+
|
46
|
+
it "has a meaningful error message" do
|
47
|
+
@model.errors.on(:bank_url).should == [ 'Bank url has an invalid format' ]
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
35
53
|
|
36
54
|
[ 'http://apple.com',
|
37
55
|
'http://www.apple.com',
|
@@ -63,5 +81,13 @@ describe 'DataMapper::Validations::Fixtures::BillOfLading' do
|
|
63
81
|
|
64
82
|
it_should_behave_like "valid model"
|
65
83
|
end
|
84
|
+
|
85
|
+
describe "with dm-type URI of #{uri}" do
|
86
|
+
before(:all) do
|
87
|
+
@model = DataMapper::Validations::Fixtures::SurrenderBillOfLading.new(valid_attributes.merge(:bank_url => uri))
|
88
|
+
end
|
89
|
+
|
90
|
+
it_should_behave_like "valid model"
|
91
|
+
end
|
66
92
|
end
|
67
93
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,47 +4,47 @@ require 'unit/contextual_validators/spec_helper'
|
|
4
4
|
|
5
5
|
describe 'DataMapper::Validations::ContextualValidators' do
|
6
6
|
before :all do
|
7
|
-
@
|
7
|
+
@validators = DataMapper::Validations::ContextualValidators.new
|
8
8
|
end
|
9
9
|
|
10
10
|
describe "initially" do
|
11
11
|
it "is empty" do
|
12
|
-
@
|
12
|
+
@validators.should be_empty
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
16
|
|
17
17
|
describe "after first reference to context" do
|
18
18
|
before :all do
|
19
|
-
@
|
19
|
+
@validators.context(:create)
|
20
20
|
end
|
21
21
|
|
22
22
|
it "initializes list of validators for referred context" do
|
23
|
-
@
|
23
|
+
@validators.context(:create).should be_empty
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
27
|
|
28
28
|
describe "after a context being added" do
|
29
29
|
before :all do
|
30
|
-
@
|
30
|
+
@validators.context(:default) << DataMapper::Validations::PresenceValidator.new(:toc, :when => [:publishing])
|
31
31
|
end
|
32
32
|
|
33
33
|
it "is no longer empty" do
|
34
|
-
@
|
34
|
+
@validators.should_not be_empty
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
38
|
|
39
39
|
describe "when cleared" do
|
40
40
|
before :all do
|
41
|
-
@
|
42
|
-
@
|
43
|
-
@
|
41
|
+
@validators.context(:default) << DataMapper::Validations::PresenceValidator.new(:toc, :when => [:publishing])
|
42
|
+
@validators.should_not be_empty
|
43
|
+
@validators.clear!
|
44
44
|
end
|
45
45
|
|
46
46
|
it "becomes empty again" do
|
47
|
-
@
|
47
|
+
@validators.should be_empty
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
@@ -4,7 +4,7 @@ require 'unit/contextual_validators/spec_helper'
|
|
4
4
|
|
5
5
|
describe 'DataMapper::Validations::ContextualValidators' do
|
6
6
|
before :all do
|
7
|
-
@
|
7
|
+
@validators = DataMapper::Validations::ContextualValidators.new
|
8
8
|
end
|
9
9
|
|
10
10
|
describe "#execute(name, target)" do
|
@@ -12,7 +12,7 @@ describe 'DataMapper::Validations::ContextualValidators' do
|
|
12
12
|
@validator_one = DataMapper::Validations::PresenceValidator.new(:name)
|
13
13
|
@validator_two = DataMapper::Validations::WithinValidator.new(:operating_system, :set => ["Mac OS X", "Linux", "FreeBSD", "Solaris"])
|
14
14
|
|
15
|
-
@
|
15
|
+
@validators.context(:default) << @validator_one << @validator_two
|
16
16
|
end
|
17
17
|
|
18
18
|
|
@@ -22,7 +22,7 @@ describe 'DataMapper::Validations::ContextualValidators' do
|
|
22
22
|
@validator_one.call(@target).should be(true)
|
23
23
|
@validator_two.call(@target).should be(true)
|
24
24
|
|
25
|
-
@result = @
|
25
|
+
@result = @validators.execute(:default, @target)
|
26
26
|
end
|
27
27
|
|
28
28
|
it "returns true" do
|
@@ -37,7 +37,7 @@ describe 'DataMapper::Validations::ContextualValidators' do
|
|
37
37
|
@validator_one.call(@target).should be(true)
|
38
38
|
@validator_two.call(@target).should be(false)
|
39
39
|
|
40
|
-
@result = @
|
40
|
+
@result = @validators.execute(:default, @target)
|
41
41
|
end
|
42
42
|
|
43
43
|
it "returns true" do
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'DataMapper::Validations::WithinValidator' do
|
4
|
+
it 'should allow Sets to be passed to the :set option' do
|
5
|
+
types = Set.new(%w(home mobile business))
|
6
|
+
|
7
|
+
@model = Class.new do
|
8
|
+
include DataMapper::Resource
|
9
|
+
|
10
|
+
def self.name
|
11
|
+
'WithinValidatorClass'
|
12
|
+
end
|
13
|
+
|
14
|
+
property :id, DataMapper::Property::Serial
|
15
|
+
property :name, String, :auto_validation => false
|
16
|
+
end.new
|
17
|
+
|
18
|
+
validator = DataMapper::Validations::WithinValidator.new(:name, :set => types)
|
19
|
+
validator.call(@model)
|
20
|
+
|
21
|
+
@model.errors.should_not be_empty
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
hash: 15424023
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
- rc
|
11
|
+
- 1
|
12
|
+
version: 1.2.0.rc1
|
6
13
|
platform: ruby
|
7
14
|
authors:
|
8
15
|
- Guy van den Berg
|
@@ -10,64 +17,92 @@ autorequire:
|
|
10
17
|
bindir: bin
|
11
18
|
cert_chain: []
|
12
19
|
|
13
|
-
date: 2011-
|
14
|
-
default_executable:
|
20
|
+
date: 2011-09-09 00:00:00 Z
|
15
21
|
dependencies:
|
16
22
|
- !ruby/object:Gem::Dependency
|
17
|
-
|
18
|
-
|
23
|
+
type: :runtime
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
19
25
|
none: false
|
20
26
|
requirements:
|
21
27
|
- - ~>
|
22
28
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
29
|
+
hash: 15424023
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 2
|
33
|
+
- 0
|
34
|
+
- rc
|
35
|
+
- 1
|
36
|
+
version: 1.2.0.rc1
|
25
37
|
prerelease: false
|
26
|
-
|
38
|
+
requirement: *id001
|
39
|
+
name: dm-core
|
27
40
|
- !ruby/object:Gem::Dependency
|
28
|
-
|
29
|
-
|
41
|
+
type: :development
|
42
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
30
43
|
none: false
|
31
44
|
requirements:
|
32
45
|
- - ~>
|
33
46
|
- !ruby/object:Gem::Version
|
34
|
-
|
35
|
-
|
47
|
+
hash: 15424023
|
48
|
+
segments:
|
49
|
+
- 1
|
50
|
+
- 2
|
51
|
+
- 0
|
52
|
+
- rc
|
53
|
+
- 1
|
54
|
+
version: 1.2.0.rc1
|
36
55
|
prerelease: false
|
37
|
-
|
56
|
+
requirement: *id002
|
57
|
+
name: dm-types
|
38
58
|
- !ruby/object:Gem::Dependency
|
39
|
-
|
40
|
-
|
59
|
+
type: :development
|
60
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
41
61
|
none: false
|
42
62
|
requirements:
|
43
63
|
- - ~>
|
44
64
|
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
65
|
+
hash: 7
|
66
|
+
segments:
|
67
|
+
- 1
|
68
|
+
- 6
|
69
|
+
- 4
|
70
|
+
version: 1.6.4
|
47
71
|
prerelease: false
|
48
|
-
|
72
|
+
requirement: *id003
|
73
|
+
name: jeweler
|
49
74
|
- !ruby/object:Gem::Dependency
|
50
|
-
|
51
|
-
|
75
|
+
type: :development
|
76
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
52
77
|
none: false
|
53
78
|
requirements:
|
54
79
|
- - ~>
|
55
80
|
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
|
81
|
+
hash: 63
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
- 9
|
85
|
+
- 2
|
86
|
+
version: 0.9.2
|
58
87
|
prerelease: false
|
59
|
-
|
88
|
+
requirement: *id004
|
89
|
+
name: rake
|
60
90
|
- !ruby/object:Gem::Dependency
|
61
|
-
|
62
|
-
|
91
|
+
type: :development
|
92
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
63
93
|
none: false
|
64
94
|
requirements:
|
65
95
|
- - ~>
|
66
96
|
- !ruby/object:Gem::Version
|
67
|
-
|
68
|
-
|
97
|
+
hash: 31
|
98
|
+
segments:
|
99
|
+
- 1
|
100
|
+
- 3
|
101
|
+
- 2
|
102
|
+
version: 1.3.2
|
69
103
|
prerelease: false
|
70
|
-
|
104
|
+
requirement: *id005
|
105
|
+
name: rspec
|
71
106
|
description: Library for performing validations on DM models and pure Ruby object
|
72
107
|
email: vandenberg.guy [a] gmail [d] com
|
73
108
|
executables: []
|
@@ -86,11 +121,11 @@ files:
|
|
86
121
|
- dm-validations.gemspec
|
87
122
|
- lib/dm-validations.rb
|
88
123
|
- lib/dm-validations/auto_validate.rb
|
124
|
+
- lib/dm-validations/context.rb
|
89
125
|
- lib/dm-validations/contextual_validators.rb
|
90
126
|
- lib/dm-validations/exceptions.rb
|
91
127
|
- lib/dm-validations/formats/email.rb
|
92
128
|
- lib/dm-validations/formats/url.rb
|
93
|
-
- lib/dm-validations/support/context.rb
|
94
129
|
- lib/dm-validations/support/object.rb
|
95
130
|
- lib/dm-validations/support/ordered_hash.rb
|
96
131
|
- lib/dm-validations/validation_errors.rb
|
@@ -123,6 +158,7 @@ files:
|
|
123
158
|
- spec/fixtures/jabberwock.rb
|
124
159
|
- spec/fixtures/kayak.rb
|
125
160
|
- spec/fixtures/lernean_hydra.rb
|
161
|
+
- spec/fixtures/llama_spaceship.rb
|
126
162
|
- spec/fixtures/mathematical_function.rb
|
127
163
|
- spec/fixtures/memory_object.rb
|
128
164
|
- spec/fixtures/mittelschnauzer.rb
|
@@ -160,6 +196,7 @@ files:
|
|
160
196
|
- spec/integration/confirmation_validator/spec_helper.rb
|
161
197
|
- spec/integration/datamapper_models/association_validation_spec.rb
|
162
198
|
- spec/integration/datamapper_models/inheritance_spec.rb
|
199
|
+
- spec/integration/dirty_attributes/dirty_attributes_spec.rb
|
163
200
|
- spec/integration/duplicated_validations/duplicated_validations_spec.rb
|
164
201
|
- spec/integration/duplicated_validations/spec_helper.rb
|
165
202
|
- spec/integration/format_validator/email_format_validator_spec.rb
|
@@ -220,10 +257,10 @@ files:
|
|
220
257
|
- spec/unit/validation_errors/enumerable_spec.rb
|
221
258
|
- spec/unit/validation_errors/reading_spec.rb
|
222
259
|
- spec/unit/validation_errors/respond_to_spec.rb
|
260
|
+
- spec/unit/validators/within_validator_spec.rb
|
223
261
|
- tasks/spec.rake
|
224
262
|
- tasks/yard.rake
|
225
263
|
- tasks/yardstick.rake
|
226
|
-
has_rdoc: true
|
227
264
|
homepage: http://github.com/datamapper/dm-validations
|
228
265
|
licenses: []
|
229
266
|
|
@@ -237,129 +274,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
237
274
|
requirements:
|
238
275
|
- - ">="
|
239
276
|
- !ruby/object:Gem::Version
|
277
|
+
hash: 3
|
278
|
+
segments:
|
279
|
+
- 0
|
240
280
|
version: "0"
|
241
281
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
282
|
none: false
|
243
283
|
requirements:
|
244
|
-
- - "
|
284
|
+
- - ">"
|
245
285
|
- !ruby/object:Gem::Version
|
246
|
-
|
286
|
+
hash: 25
|
287
|
+
segments:
|
288
|
+
- 1
|
289
|
+
- 3
|
290
|
+
- 1
|
291
|
+
version: 1.3.1
|
247
292
|
requirements: []
|
248
293
|
|
249
294
|
rubyforge_project: datamapper
|
250
|
-
rubygems_version: 1.
|
295
|
+
rubygems_version: 1.8.10
|
251
296
|
signing_key:
|
252
297
|
specification_version: 3
|
253
298
|
summary: Library for performing validations on DM models and pure Ruby object
|
254
|
-
test_files:
|
255
|
-
|
256
|
-
- spec/fixtures/basketball_court.rb
|
257
|
-
- spec/fixtures/basketball_player.rb
|
258
|
-
- spec/fixtures/beta_tester_account.rb
|
259
|
-
- spec/fixtures/bill_of_landing.rb
|
260
|
-
- spec/fixtures/boat_dock.rb
|
261
|
-
- spec/fixtures/city.rb
|
262
|
-
- spec/fixtures/company.rb
|
263
|
-
- spec/fixtures/corporate_world.rb
|
264
|
-
- spec/fixtures/country.rb
|
265
|
-
- spec/fixtures/ethernet_frame.rb
|
266
|
-
- spec/fixtures/event.rb
|
267
|
-
- spec/fixtures/g3_concert.rb
|
268
|
-
- spec/fixtures/jabberwock.rb
|
269
|
-
- spec/fixtures/kayak.rb
|
270
|
-
- spec/fixtures/lernean_hydra.rb
|
271
|
-
- spec/fixtures/mathematical_function.rb
|
272
|
-
- spec/fixtures/memory_object.rb
|
273
|
-
- spec/fixtures/mittelschnauzer.rb
|
274
|
-
- spec/fixtures/motor_launch.rb
|
275
|
-
- spec/fixtures/multibyte.rb
|
276
|
-
- spec/fixtures/page.rb
|
277
|
-
- spec/fixtures/phone_number.rb
|
278
|
-
- spec/fixtures/pirogue.rb
|
279
|
-
- spec/fixtures/programming_language.rb
|
280
|
-
- spec/fixtures/reservation.rb
|
281
|
-
- spec/fixtures/scm_operation.rb
|
282
|
-
- spec/fixtures/sms_message.rb
|
283
|
-
- spec/fixtures/udp_packet.rb
|
284
|
-
- spec/integration/absent_field_validator/absent_field_validator_spec.rb
|
285
|
-
- spec/integration/absent_field_validator/spec_helper.rb
|
286
|
-
- spec/integration/acceptance_validator/acceptance_validator_spec.rb
|
287
|
-
- spec/integration/acceptance_validator/spec_helper.rb
|
288
|
-
- spec/integration/automatic_validation/custom_messages_for_inferred_validation_spec.rb
|
289
|
-
- spec/integration/automatic_validation/disabling_inferred_validation_spec.rb
|
290
|
-
- spec/integration/automatic_validation/inferred_boolean_properties_validation_spec.rb
|
291
|
-
- spec/integration/automatic_validation/inferred_float_property_validation_spec.rb
|
292
|
-
- spec/integration/automatic_validation/inferred_format_validation_spec.rb
|
293
|
-
- spec/integration/automatic_validation/inferred_integer_properties_validation_spec.rb
|
294
|
-
- spec/integration/automatic_validation/inferred_length_validation_spec.rb
|
295
|
-
- spec/integration/automatic_validation/inferred_presence_validation_spec.rb
|
296
|
-
- spec/integration/automatic_validation/inferred_primitive_validation_spec.rb
|
297
|
-
- spec/integration/automatic_validation/inferred_uniqueness_validation_spec.rb
|
298
|
-
- spec/integration/automatic_validation/inferred_within_validation_spec.rb
|
299
|
-
- spec/integration/automatic_validation/spec_helper.rb
|
300
|
-
- spec/integration/block_validator/block_validator_spec.rb
|
301
|
-
- spec/integration/block_validator/spec_helper.rb
|
302
|
-
- spec/integration/conditional_validation/if_condition_spec.rb
|
303
|
-
- spec/integration/conditional_validation/spec_helper.rb
|
304
|
-
- spec/integration/confirmation_validator/confirmation_validator_spec.rb
|
305
|
-
- spec/integration/confirmation_validator/spec_helper.rb
|
306
|
-
- spec/integration/datamapper_models/association_validation_spec.rb
|
307
|
-
- spec/integration/datamapper_models/inheritance_spec.rb
|
308
|
-
- spec/integration/duplicated_validations/duplicated_validations_spec.rb
|
309
|
-
- spec/integration/duplicated_validations/spec_helper.rb
|
310
|
-
- spec/integration/format_validator/email_format_validator_spec.rb
|
311
|
-
- spec/integration/format_validator/format_validator_spec.rb
|
312
|
-
- spec/integration/format_validator/regexp_validator_spec.rb
|
313
|
-
- spec/integration/format_validator/spec_helper.rb
|
314
|
-
- spec/integration/format_validator/url_format_validator_spec.rb
|
315
|
-
- spec/integration/length_validator/default_value_spec.rb
|
316
|
-
- spec/integration/length_validator/equality_spec.rb
|
317
|
-
- spec/integration/length_validator/error_message_spec.rb
|
318
|
-
- spec/integration/length_validator/maximum_spec.rb
|
319
|
-
- spec/integration/length_validator/minimum_spec.rb
|
320
|
-
- spec/integration/length_validator/range_spec.rb
|
321
|
-
- spec/integration/length_validator/spec_helper.rb
|
322
|
-
- spec/integration/method_validator/method_validator_spec.rb
|
323
|
-
- spec/integration/method_validator/spec_helper.rb
|
324
|
-
- spec/integration/numeric_validator/equality_with_float_type_spec.rb
|
325
|
-
- spec/integration/numeric_validator/equality_with_integer_type_spec.rb
|
326
|
-
- spec/integration/numeric_validator/float_type_spec.rb
|
327
|
-
- spec/integration/numeric_validator/gt_with_float_type_spec.rb
|
328
|
-
- spec/integration/numeric_validator/gte_with_float_type_spec.rb
|
329
|
-
- spec/integration/numeric_validator/integer_only_true_spec.rb
|
330
|
-
- spec/integration/numeric_validator/integer_type_spec.rb
|
331
|
-
- spec/integration/numeric_validator/lt_with_float_type_spec.rb
|
332
|
-
- spec/integration/numeric_validator/lte_with_float_type_spec.rb
|
333
|
-
- spec/integration/numeric_validator/spec_helper.rb
|
334
|
-
- spec/integration/primitive_validator/primitive_validator_spec.rb
|
335
|
-
- spec/integration/primitive_validator/spec_helper.rb
|
336
|
-
- spec/integration/pure_ruby_objects/plain_old_ruby_object_validation_spec.rb
|
337
|
-
- spec/integration/required_field_validator/association_spec.rb
|
338
|
-
- spec/integration/required_field_validator/boolean_type_value_spec.rb
|
339
|
-
- spec/integration/required_field_validator/date_type_value_spec.rb
|
340
|
-
- spec/integration/required_field_validator/datetime_type_value_spec.rb
|
341
|
-
- spec/integration/required_field_validator/float_type_value_spec.rb
|
342
|
-
- spec/integration/required_field_validator/integer_type_value_spec.rb
|
343
|
-
- spec/integration/required_field_validator/plain_old_ruby_object_spec.rb
|
344
|
-
- spec/integration/required_field_validator/shared_examples.rb
|
345
|
-
- spec/integration/required_field_validator/spec_helper.rb
|
346
|
-
- spec/integration/required_field_validator/string_type_value_spec.rb
|
347
|
-
- spec/integration/required_field_validator/text_type_value_spec.rb
|
348
|
-
- spec/integration/shared/default_validation_context.rb
|
349
|
-
- spec/integration/shared/valid_and_invalid_model.rb
|
350
|
-
- spec/integration/uniqueness_validator/spec_helper.rb
|
351
|
-
- spec/integration/uniqueness_validator/uniqueness_validator_spec.rb
|
352
|
-
- spec/integration/within_validator/spec_helper.rb
|
353
|
-
- spec/integration/within_validator/within_validator_spec.rb
|
354
|
-
- spec/public/resource_spec.rb
|
355
|
-
- spec/spec_helper.rb
|
356
|
-
- spec/unit/contextual_validators/emptiness_spec.rb
|
357
|
-
- spec/unit/contextual_validators/execution_spec.rb
|
358
|
-
- spec/unit/contextual_validators/spec_helper.rb
|
359
|
-
- spec/unit/generic_validator/equality_operator_spec.rb
|
360
|
-
- spec/unit/generic_validator/optional_spec.rb
|
361
|
-
- spec/unit/validation_errors/adding_spec.rb
|
362
|
-
- spec/unit/validation_errors/emptiness_spec.rb
|
363
|
-
- spec/unit/validation_errors/enumerable_spec.rb
|
364
|
-
- spec/unit/validation_errors/reading_spec.rb
|
365
|
-
- spec/unit/validation_errors/respond_to_spec.rb
|
299
|
+
test_files: []
|
300
|
+
|