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

Version Path
gemika-0.8.4 spec/gemika/database_spec.rb
gemika-0.8.3 spec/gemika/database_spec.rb
gemika-0.8.2 spec/gemika/database_spec.rb
gemika-0.8.1 spec/gemika/database_spec.rb
gemika-0.8.0 spec/gemika/database_spec.rb
gemika-0.7.1 spec/gemika/database_spec.rb
gemika-0.7.0 spec/gemika/database_spec.rb
gemika-0.6.1 spec/gemika/database_spec.rb
gemika-0.6.0 spec/gemika/database_spec.rb
gemika-0.5.0 spec/gemika/database_spec.rb
gemika-0.4.1 spec/gemika/database_spec.rb
gemika-0.4.0 spec/gemika/database_spec.rb
gemika-0.3.4 spec/gemika/database_spec.rb
gemika-0.3.3 spec/gemika/database_spec.rb
gemika-0.3.2 spec/gemika/database_spec.rb
gemika-0.3.1 spec/gemika/database_spec.rb
gemika-0.3.0 spec/gemika/database_spec.rb
gemika-0.2.0 spec/gemika/database_spec.rb