medea 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/medea/jasondeferredquery.rb +8 -0
- data/lib/medea/version.rb +1 -1
- data/spec/deferred_query_spec.rb +10 -0
- metadata +2 -2
data/lib/medea/version.rb
CHANGED
data/spec/deferred_query_spec.rb
CHANGED
@@ -33,4 +33,14 @@ describe "Deferred Query" do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
it "should be able to fetch those since a particular time"
|
36
|
+
|
37
|
+
it "should return the last element" do
|
38
|
+
u = User.all
|
39
|
+
u.last.should eq(u[-1])
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should return the first element" do
|
43
|
+
u = User.all
|
44
|
+
u.first.should eq(u[0])
|
45
|
+
end
|
36
46
|
end
|