We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9abda1 commit 51f9df8Copy full SHA for 51f9df8
feint.gemspec
@@ -28,4 +28,5 @@ Gem::Specification.new do |spec|
28
spec.add_development_dependency "pg"
29
spec.add_development_dependency "mysql2"
30
spec.add_development_dependency "sqlite3"
31
+ spec.add_development_dependency "mongoid"
32
end
spec/mongoid_spec.rb
@@ -0,0 +1,25 @@
1
+require "spec_helper"
2
+require "mongoid"
3
+
4
+Mongoid.load_configuration({
5
+ clients: {
6
+ default: {
7
+ database: "feint",
8
+ hosts: ["localhost:27017"],
9
+ }
10
11
+})
12
13
+class Order
14
+ include Mongoid::Document
15
+end
16
17
+describe Order do
18
+ it "should initialize a Mongoid instance" do
19
+ expect {
20
+ Order.create
21
+ }.to change {
22
+ Order.count
23
+ }.by(1)
24
+ end
25
0 commit comments