Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Reset session after spec
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Sep 9, 2012
1 parent ba93c25 commit 50998d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/moped/session_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@

describe "#use" do

after do
session.use "moped_test"
end

it "changes the current database" do
session.use "moped_test_2"
session.command(dbStats: 1)["db"].should eq "moped_test_2"
Expand Down

0 comments on commit 50998d6

Please sign in to comment.