Sha256: 8d781c0f8cccbbf0f3595f0cae30460e6a883dd4dc2cd76b041ed9ef9bbd8734

Contents?: true

Size: 348 Bytes

Versions: 10

Compression:

Stored size: 348 Bytes

Contents

shared_context 'users and accounts' do
  include_context 'database setup'

  before do
    conn[:users].insert id: 1, name: 'Piotr'
    conn[:accounts].insert id: 1, user_id: 1, number: '42', balance: 10_000.to_d
    conn[:cards].insert id: 1, account_id: 1, pan: '*6789'
    conn[:subscriptions].insert id: 1, card_id: 1, service: 'aws'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rom-sql-1.0.1 spec/shared/users_and_accounts.rb
rom-sql-1.0.0 spec/shared/users_and_accounts.rb
rom-sql-1.0.0.rc2 spec/shared/users_and_accounts.rb
rom-sql-1.0.0.rc1 spec/shared/users_and_accounts.rb
rom-sql-1.0.0.beta3 spec/shared/users_and_accounts.rb
rom-sql-1.0.0.beta2 spec/shared/users_and_accounts.rb
rom-sql-1.0.0.beta1 spec/shared/users_and_accounts.rb
rom-sql-0.9.1 spec/shared/users_and_accounts.rb
rom-sql-0.9.0 spec/shared/users_and_accounts.rb
rom-sql-0.8.0 spec/shared/users_and_accounts.rb