Sha256: 2f664700a250a7230901506d12df0969bbf72a62562631e52ca7391a6395012e

Contents?: true

Size: 421 Bytes

Versions: 5

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'
require 'bigdecimal'

module Arel
  describe "Attributes::Time" do

    before :all do
      @relation = Model.build do |r|
        r.engine Testing::Engine.new
        r.attribute :created_at, Attributes::Time
      end
    end

    def type_cast(val)
      @relation[:created_at].type_cast(val)
    end

    describe "#type_cast" do
      it "works" do
        pending
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
arel-1.0.1 spec/attributes/time_spec.rb
arel-1.0.0 spec/attributes/time_spec.rb
arel-1.0.0.rc1 spec/attributes/time_spec.rb
arel-compat-0.4.0 spec/attributes/time_spec.rb
arel-0.4.0 spec/attributes/time_spec.rb