rad_matchers 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ class ValidateAssociatedMatcher
|
|
21
21
|
def association_class
|
22
22
|
reflection = @instance.class.reflect_on_association(@attribute)
|
23
23
|
if reflection.options[:polymorphic] == true
|
24
|
-
@instance.send(reflection.
|
24
|
+
@instance.send(reflection.foreign_type).constantize
|
25
25
|
else
|
26
26
|
reflection.klass
|
27
27
|
end
|
data/lib/rad_matchers/version.rb
CHANGED
data/rad_matchers.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = "rad_matchers-#{RadMatchers::Version::STRING}"
|
13
13
|
s.description = "additional matchers for rspec-rails"
|
14
14
|
|
15
|
-
s.rubygems_version = "1.
|
15
|
+
s.rubygems_version = "1.6.2"
|
16
16
|
s.rubyforge_project = "rad_matchers"
|
17
17
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,27 +1,24 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rad_matchers
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.4'
|
4
5
|
prerelease:
|
5
|
-
version: "0.3"
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Eric Carty-Fickes
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
12
|
+
date: 2011-07-19 00:00:00.000000000 -05:00
|
13
|
+
default_executable:
|
14
14
|
dependencies: []
|
15
|
-
|
16
15
|
description: additional matchers for rspec-rails
|
17
16
|
email: ericcf@northwestern.edu
|
18
17
|
executables: []
|
19
|
-
|
20
18
|
extensions: []
|
21
|
-
|
22
|
-
extra_rdoc_files:
|
19
|
+
extra_rdoc_files:
|
23
20
|
- README.markdown
|
24
|
-
files:
|
21
|
+
files:
|
25
22
|
- .document
|
26
23
|
- .gitignore
|
27
24
|
- Licence.txt
|
@@ -30,32 +27,30 @@ files:
|
|
30
27
|
- lib/rad_matchers/validate_associated_matcher.rb
|
31
28
|
- lib/rad_matchers/version.rb
|
32
29
|
- rad_matchers.gemspec
|
30
|
+
has_rdoc: true
|
33
31
|
homepage:
|
34
32
|
licenses: []
|
35
|
-
|
36
33
|
post_install_message:
|
37
|
-
rdoc_options:
|
34
|
+
rdoc_options:
|
38
35
|
- --charset=UTF-8
|
39
|
-
require_paths:
|
36
|
+
require_paths:
|
40
37
|
- lib
|
41
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
39
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version:
|
47
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
45
|
none: false
|
49
|
-
requirements:
|
50
|
-
- -
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version:
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
53
50
|
requirements: []
|
54
|
-
|
55
51
|
rubyforge_project: rad_matchers
|
56
|
-
rubygems_version: 1.
|
52
|
+
rubygems_version: 1.6.2
|
57
53
|
signing_key:
|
58
54
|
specification_version: 3
|
59
|
-
summary: rad_matchers-0.
|
55
|
+
summary: rad_matchers-0.4
|
60
56
|
test_files: []
|
61
|
-
|