Sha256: b3a3e23a98ce52edd3d56c724f13ae84b54195793513dfaf0272860b62cad28d
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
require "spec_helper" describe "Fetcher::Mongoid::Models::Db" do context "when i create a user" do before do Fetcher::Mongoid::Models::Db.new "./config/main.yml" end let(:user) {User.new} it "should return true when inserted in database" do user.save.should be_true end after do user.remove end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fetcher-mongoid-models-0.0.2 | spec/models/user_spec.rb |
fetcher-mongoid-models-0.0.1 | spec/models/user_spec.rb |