mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
22 lines
No EOL
391 B
Ruby
22 lines
No EOL
391 B
Ruby
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"
|
|
end
|
|
end
|
|
end |