Sha256: b62ef1d83ee751002f00d026227b5348b184a567436e1149c279f871f66b67a6

Contents?: true

Size: 403 Bytes

Versions: 10

Compression:

Stored size: 403 Bytes

Contents

# Create a dummy schema for testing
class User < ActiveRecord::Base
end

RSpec.configure do |config|
  config.before(:suite) do
    m = ActiveRecord::Migration
    m.verbose = false

    m.drop_table :users if ActiveRecord::Base.connection.tables.include?("users") 

    m.create_table :users do |t|
      t.string :email
      t.string :name
      t.integer :value
      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
prosperity-0.0.11 spec/support/test_database.rb
prosperity-0.0.10 spec/support/test_database.rb
prosperity-0.0.9 spec/support/test_database.rb
prosperity-0.0.8 spec/support/test_database.rb
prosperity-0.0.7 spec/support/test_database.rb
prosperity-0.0.6 spec/support/test_database.rb
prosperity-0.0.5 spec/support/test_database.rb
prosperity-0.0.4 spec/support/test_database.rb
prosperity-0.0.3 spec/support/test_database.rb
prosperity-0.0.2 spec/support/test_database.rb