Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 440 Bytes
require File.expand_path(File.dirname(__FILE__) + '/support/integration_helper')
describe 'Each integration test' do
before(:each) do
class Integration
include LightMongo::Document
end
end
after(:all) do
Integration.find.should be_empty
end
it "tears down the database after each run" do
Integration.create :name => 'Database teardown example'
Integration.find.first.should be_a(Integration)
end
end