Skip to content

Commit

Permalink
Create an initial document to ensure database is present
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Sep 9, 2012
1 parent c931329 commit fc36736
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/moped/session_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
Moped::Session.new(%w[127.0.0.1:27017], database: "moped_test")
end

before(:all) do
session[:users].insert({ name: "test" })
session[:users].find.delete_all
end

describe "#database_names" do

let(:names) do
Expand Down

0 comments on commit fc36736

Please sign in to comment.