aboutsummaryrefslogblamecommitdiffstats
path: root/spec/attributes/time_spec.rb
blob: 15384e2073682ae10ba3655b881e64f326ac06e4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                 


                   

       
   
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