Sha256: 60d775b5001f5a893d1e2e29b95179f993f2d7bf74e23477ca29249c4334ccaf
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' describe 'Schemaless::Table' do before do @app = ::ActiveRecord::Base.descendants end it 'should instantiate' do expect { Schemaless::Table.new(@app.last) }.to_not raise_error end # it "should create tables nice" do # expect(Schemaless::Table.new(@app.last)).to include(Bike) # end it 'should create tables nice' do expect(Schemaless::Table.new(@app[1]).model).to eq(Place) end it 'should create tables nice' do expect(Schemaless::Table.new(@app[1]).name).to eq('places') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schemaless-0.0.5 | spec/schemaless/table_spec.rb |
schemaless-0.0.3 | spec/schemaless/table_spec.rb |