fixture_validation 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/fixture_validation.gemspec +1 -1
- data/lib/fixture_validation/version.rb +1 -1
- data/lib/fixture_validation_test.rb +4 -3
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a64198be9d3b99091f2716500aba88e8d69fc25
|
4
|
+
data.tar.gz: ef1d836eadc863382b80a2cdebc7c9b9ff3d4383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f552393f2462998bbdfc9381fb9ed36ae9a6f5fc7786303114de6d8744af786166091c2201ad3a7cd988be2f2d3095d24f016f2d00725163eb022276f68bafe8
|
7
|
+
data.tar.gz: de515457797bf2fa8afdf2fa008fb8869436a8d0fe3d13ee90aeb0cbf8d753eaa69d4edf37be7a1c045327152c48687874fc02f390f589e099349a1a24f7593b
|
data/.gitignore
CHANGED
data/fixture_validation.gemspec
CHANGED
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.13'
|
24
24
|
spec.add_development_dependency 'rake', '~> 10.0'
|
25
25
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
26
|
-
spec.add_runtime_dependency 'rails'
|
26
|
+
spec.add_runtime_dependency 'rails', '~> 4.0', '~> 5.0'
|
27
27
|
end
|
@@ -7,11 +7,12 @@ class FixtureValidation::Test < ActiveSupport::TestCase
|
|
7
7
|
test 'fixtures are valid' do
|
8
8
|
count = 0
|
9
9
|
klasses = []
|
10
|
-
fixture_table_names.each do |
|
10
|
+
fixture_table_names.each do |fixture_name|
|
11
|
+
klass_name = fixture_name.classify
|
11
12
|
begin
|
12
|
-
klasses << klass_name.
|
13
|
+
klasses << klass_name.constantize
|
13
14
|
rescue NameError
|
14
|
-
|
15
|
+
Rails.logger.debug "No model class (#{klass_name}) found for fixture #{fixture_name}"
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixture_validation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Falcone
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.0'
|
62
|
+
- - "~>"
|
60
63
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
64
|
+
version: '5.0'
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '4.0'
|
72
|
+
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
74
|
+
version: '5.0'
|
69
75
|
description:
|
70
76
|
email:
|
71
77
|
- danfalcone@gmail.com
|