mongoid 0.6.9 → 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mongoid/associations/has_many.rb +1 -1
- data/mongoid.gemspec +2 -2
- data/spec/unit/mongoid/associations_spec.rb +16 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.10
|
data/mongoid.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mongoid}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Durran Jordan"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-11}
|
13
13
|
s.email = %q{durran@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.textile"
|
@@ -75,6 +75,22 @@ describe Mongoid::Associations do
|
|
75
75
|
code.phone_number.should == phone_number
|
76
76
|
end
|
77
77
|
|
78
|
+
context "when navigating the graph" do
|
79
|
+
|
80
|
+
before do
|
81
|
+
@person = Person.new(:title => "Mr")
|
82
|
+
@name = Name.new(:first_name => "Mason")
|
83
|
+
@address = Address.new(:street => "King St.")
|
84
|
+
@person.name = @name
|
85
|
+
@person.addresses << @address
|
86
|
+
end
|
87
|
+
|
88
|
+
it "allows referencing another child through the parent" do
|
89
|
+
@name.person.addresses.first.should == @address
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
|
78
94
|
end
|
79
95
|
|
80
96
|
describe "#has_many" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Durran Jordan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-11 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|