is_a_collection 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/is_a_collection.rb +1 -1
- data/spec/is_a_collection_spec.rb +7 -0
- metadata +3 -3
data/lib/is_a_collection.rb
CHANGED
@@ -24,6 +24,10 @@ class B
|
|
24
24
|
|
25
25
|
end
|
26
26
|
|
27
|
+
class C
|
28
|
+
is_a_collection
|
29
|
+
end
|
30
|
+
|
27
31
|
describe "is_a_collection" do
|
28
32
|
describe "#all" do
|
29
33
|
describe "without any instances" do
|
@@ -48,6 +52,9 @@ describe "is_a_collection" do
|
|
48
52
|
b = B.new('foobar')
|
49
53
|
B.find('foobar').should == b
|
50
54
|
end
|
55
|
+
it "should work without instances" do
|
56
|
+
C.find('bla')
|
57
|
+
end
|
51
58
|
end
|
52
59
|
describe "#destroy" do
|
53
60
|
before(:each) do
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Niko Dittmann
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-10 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|