mongoid-publishable 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore
CHANGED
@@ -92,8 +92,16 @@ describe Mongoid::Publishable::UnpublishedObject do
|
|
92
92
|
Mongoid::Publishable::UnpublishedObject.new(model: model)
|
93
93
|
end
|
94
94
|
|
95
|
-
|
96
|
-
|
95
|
+
context "with an existing model method" do
|
96
|
+
it "should delegate to the model" do
|
97
|
+
expect(subject.id).to eq model.id
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
context "with a non-existent model method" do
|
102
|
+
it "should raise the typical error" do
|
103
|
+
expect { subject.random_method }.to raise_error(NoMethodError)
|
104
|
+
end
|
97
105
|
end
|
98
106
|
end
|
99
107
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-publishable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongoid
|
@@ -124,7 +124,6 @@ files:
|
|
124
124
|
- README.md
|
125
125
|
- Rakefile
|
126
126
|
- lib/mongoid-publishable.rb
|
127
|
-
- lib/mongoid/.DS_Store
|
128
127
|
- lib/mongoid/publishable.rb
|
129
128
|
- lib/mongoid/publishable/callback.rb
|
130
129
|
- lib/mongoid/publishable/callback_collection.rb
|
@@ -167,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
166
|
version: '0'
|
168
167
|
segments:
|
169
168
|
- 0
|
170
|
-
hash:
|
169
|
+
hash: -138579093734556963
|
171
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
171
|
none: false
|
173
172
|
requirements:
|
@@ -176,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
175
|
version: '0'
|
177
176
|
segments:
|
178
177
|
- 0
|
179
|
-
hash:
|
178
|
+
hash: -138579093734556963
|
180
179
|
requirements: []
|
181
180
|
rubyforge_project:
|
182
181
|
rubygems_version: 1.8.24
|
data/lib/mongoid/.DS_Store
DELETED
Binary file
|