Sha256: 11526214f2bd2aeafffb7aa8cace32f2fae82e3ac2a4a479609cfade7c8f53d4
Contents?: true
Size: 497 Bytes
Versions: 9
Compression:
Stored size: 497 Bytes
Contents
RSpec.describe 'ROM.container', skip_tables: true do include_context 'database setup' with_adapters do before do conn.drop_table?(:dragons) end let(:rom) do ROM.container(:sql, uri) do |conf| conf.default.create_table(:dragons) do primary_key :id column :name, String end end end it 'creates tables within the setup block' do expect(rom.relations[:dragons]).to be_kind_of(ROM::SQL::Relation) end end end
Version data entries
9 entries across 9 versions & 1 rubygems