Sha256: e3d8703c8192b8cd4db38f8a33a9ca72c905c69705b88283d736a8bb076ae00b
Contents?: true
Size: 487 Bytes
Versions: 6
Compression:
Stored size: 487 Bytes
Contents
require 'spec_helper' describe 'Inferring schema from database' do include_context 'database setup' context "when database schema exists" do it "infers the schema from the database relations" do expect(rom.relations.users.to_a) .to eql(rom.gateways[:default][:users].to_a) end end context "for empty database schemas" do it "returns an empty schema" do drop_tables expect { rom.not_here }.to raise_error(NoMethodError) end end end
Version data entries
6 entries across 6 versions & 1 rubygems