Sha256: d336e8570b31d942712106fe7305fb89ed5aa244121153e6252f899e09c54b43
Contents?: true
Size: 571 Bytes
Versions: 9
Compression:
Stored size: 571 Bytes
Contents
require 'spec_helper' describe 'fields' do it 'automigrable_model' do Simple.auto_migrable?.should be_true NotAutomigrable.auto_migrable?.should be_false end it 'migrations_attrs' do AutoMigration1.migration_attrs.should == [] AutoMigration2.migration_attrs.should == %w[some_attr1 some_attr2 some_attr3] end it 'boolean_column_false_by_default' do AutoMigration1.new.boolean_field.should be_false end it 'attributes_accessible' do obj = AutoMigration1.create(:integer_field => 123) obj.integer_field.should == 123 end end
Version data entries
9 entries across 9 versions & 1 rubygems