dm-is-indexed 0.1.0 → 0.1.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.
- data/ChangeLog.md +5 -0
- data/Gemfile +4 -0
- data/gemspec.yml +1 -1
- data/lib/dm-is-indexed/is/indexed.rb +1 -1
- data/spec/integration/indexed_spec.rb +18 -7
- data/spec/integration/models/atom.rb +3 -0
- metadata +1 -1
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/gemspec.yml
CHANGED
@@ -8,43 +8,50 @@ describe DataMapper::Is::Indexed do
|
|
8
8
|
Atom.create(
|
9
9
|
:symbol => 'He',
|
10
10
|
:name => 'Helium',
|
11
|
-
:atomic_weight => 4.002602
|
11
|
+
:atomic_weight => 4.002602,
|
12
|
+
:url => 'http://www.webelements.com/helium/'
|
12
13
|
)
|
13
14
|
|
14
15
|
Atom.create(
|
15
16
|
:symbol => 'Ne',
|
16
17
|
:name => 'Neon',
|
17
|
-
:atomic_weight => 20.1797
|
18
|
+
:atomic_weight => 20.1797,
|
19
|
+
:url => 'http://www.webelements.com/neon/'
|
18
20
|
)
|
19
21
|
|
20
22
|
Atom.create(
|
21
23
|
:symbol => 'Ar',
|
22
24
|
:name => 'Argon',
|
23
|
-
:atomic_weight => 39.948
|
25
|
+
:atomic_weight => 39.948,
|
26
|
+
:url => 'http://www.webelements.com/argon/'
|
24
27
|
)
|
25
28
|
|
26
29
|
Atom.create(
|
27
30
|
:symbol => 'Kr',
|
28
31
|
:name => 'Krypton',
|
29
|
-
:atomic_weight => 83.798
|
32
|
+
:atomic_weight => 83.798,
|
33
|
+
:url => 'http://www.webelements.com/krypton/'
|
30
34
|
)
|
31
35
|
|
32
36
|
Atom.create(
|
33
37
|
:symbol => 'Xe',
|
34
38
|
:name => 'Xeon',
|
35
|
-
:atomic_weight => 131.293
|
39
|
+
:atomic_weight => 131.293,
|
40
|
+
:url => 'http://www.webelements.com/xenon/'
|
36
41
|
)
|
37
42
|
|
38
43
|
Atom.create(
|
39
44
|
:symbol => 'Rn',
|
40
45
|
:name => 'Radon',
|
41
|
-
:atomic_weight => 222.0
|
46
|
+
:atomic_weight => 222.0,
|
47
|
+
:url => 'http://www.webelements.com/radon/'
|
42
48
|
)
|
43
49
|
|
44
50
|
Atom.create(
|
45
51
|
:symbol => 'Uuo',
|
46
52
|
:name => 'Ununoctium',
|
47
|
-
:atomic_weight => 294.0
|
53
|
+
:atomic_weight => 294.0,
|
54
|
+
:url => 'http://www.webelements.com/ununoctium/'
|
48
55
|
)
|
49
56
|
end
|
50
57
|
|
@@ -84,5 +91,9 @@ describe DataMapper::Is::Indexed do
|
|
84
91
|
it "should select the properties to query based on the key type" do
|
85
92
|
subject[83.798].symbol.should == 'Kr'
|
86
93
|
end
|
94
|
+
|
95
|
+
it "should select the properties to query based on supported key types" do
|
96
|
+
subject['http://www.webelements.com/ununoctium/'].symbol.should == 'Uuo'
|
97
|
+
end
|
87
98
|
end
|
88
99
|
end
|