Skip to content

Instantly share code, notes, and snippets.

@revelation
Created July 31, 2008 02:28
Show Gist options
  • Save revelation/3390 to your computer and use it in GitHub Desktop.
Save revelation/3390 to your computer and use it in GitHub Desktop.
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper_new'))
describe "I don't know what's going on" do
load_models_for_metaphor :zoo
before(:each) do
DataMapper.auto_migrate!
repository(:secondary) { DataMapper.auto_migrate! }
end
it "should not bleed" do
repository(:default) do
Zoo.create
end
repository(:secondary) do
Zoo.first.should be_nil
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment