mongoid_monkey 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,28 +1,28 @@
1
- require 'spec_helper'
2
-
3
- if Mongoid::VERSION =~ /\A3\./
4
-
5
- describe "A document loaded from rails" do
6
- before(:all) do
7
- require 'mongoid/railties/document'
8
- end
9
-
10
- after(:all) do
11
- Mongoid::Document.class_eval do
12
- undef _destroy
13
- end
14
- end
15
-
16
- it "defines a _destroy method" do
17
- expect(Person.new).to respond_to(:_destroy)
18
- end
19
-
20
- describe "#_destroy" do
21
-
22
- it "always returns false" do
23
- expect(Person.new._destroy).to be false
24
- end
25
- end
26
- end
27
-
28
- end
1
+ require 'spec_helper'
2
+
3
+ if Mongoid::VERSION =~ /\A3\./
4
+
5
+ describe "A document loaded from rails" do
6
+ before(:all) do
7
+ require 'mongoid/railties/document'
8
+ end
9
+
10
+ after(:all) do
11
+ Mongoid::Document.class_eval do
12
+ undef _destroy
13
+ end
14
+ end
15
+
16
+ it "defines a _destroy method" do
17
+ expect(Person.new).to respond_to(:_destroy)
18
+ end
19
+
20
+ describe "#_destroy" do
21
+
22
+ it "always returns false" do
23
+ expect(Person.new._destroy).to be false
24
+ end
25
+ end
26
+ end
27
+
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_monkey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnnyshields
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-23 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake