Sha256: 0f2180ea9b8adc2a2624458042d0857272f1fe7859bd2b242105f4f02a542b09

Contents?: true

Size: 998 Bytes

Versions: 1

Compression:

Stored size: 998 Bytes

Contents

require 'lib/orm_adapter/base_shared'

describe "ActiveRecordOrm" do

  describe 'columns_hash' do
    it 'should be proper' do
      ActiveRecordOrm::Primal.to_adapter.columns_hash.should == {
        "id" => {:type => :integer},
        "string_field" => {:type => :string},
        "text_field" => {:type => :text},
        "select_field" => {:type => :string},
        "integer_field" => {:type => :integer},
        "float_field" => {:type => :float},
        "decimal_field" => {:type => :decimal},
        "datetime_field" => {:type => :datetime},
        "timestamp_field" => {:type => :datetime},
        "time_field" => {:type => :time},
        "date_field" => {:type => :date},
        "boolean_field" => {:type => :boolean}
      }
    end
  end

  describe 'filter' do
    it_should_behave_like "an adapter" do
      let(:model) {ActiveRecordOrm::Primal}
      let(:fabric) {:active_record_orm_primal}
      let(:controller) {Orms::ActiveRecordOrmPrimalsController}
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer-0.1.1 spec/lib/orm_adapter/active_record_spec.rb