Skip to content

Commit

Permalink
Fix mongohq setup
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Aug 13, 2012
1 parent 7c1e356 commit a6c6ea2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/mongoid/sessions_spec.rb
Expand Up @@ -632,14 +632,14 @@
let!(:band) do
Band.with(
session: "mongohq_single",
database: "mongoid"
database: database_id
).create
end

let(:from_db) do
Band.with(
session: "mongohq_single",
database: "mongoid"
database: database_id
).find(band.id)
end

Expand Down Expand Up @@ -954,16 +954,16 @@
end

after do
Band.with(database: "mongoid").delete_all
Band.with(database: database_id).delete_all
Mongoid.override_session(nil)
end

let!(:band) do
Band.with(database: "mongoid").create(name: "Tool")
Band.with(database: database_id).create(name: "Tool")
end

let(:persisted) do
Band.with(session: :mongohq_single, database: "mongoid").where(name: "Tool").first
Band.with(session: :mongohq_single, database: database_id).where(name: "Tool").first
end

it "persists to the overridden session" do
Expand Down

0 comments on commit a6c6ea2

Please sign in to comment.