Sha256: 614421adf57db3373734bab4f29861660f91ed3abb1af9e4f7f34803bd3ffaf9
Contents?: true
Size: 444 Bytes
Versions: 18
Compression:
Stored size: 444 Bytes
Contents
require 'spec_helper' # can't move this to .rspec in RSpec 1 describe Gemika::Database do it 'connects ActiveRecord to the database in database.yml, then migrates the schema' do user = User.create!(:email => 'foo@bar.com') database_user = User.first user.email.should == database_user.email end it 'wraps each example in a transaction that is rolled back when the transaction ends' do User.count.should == 0 end end
Version data entries
18 entries across 18 versions & 1 rubygems