test/test_scheme.rb in swift-0.5.1 vs test/test_scheme.rb in swift-0.6.0
- old
+ new
@@ -2,15 +2,15 @@
describe 'scheme' do
before do
@user = Class.new(Swift::Scheme) do
store :users
- attribute :id, Swift::Type::Integer, serial: true, key: true
- attribute :name, Swift::Type::String, default: "dave"
- attribute :age, Swift::Type::Integer, default: 18
+ attribute :id, Swift::Type::Integer, serial: true, key: true
+ attribute :name, Swift::Type::String, default: "dave"
+ attribute :age, Swift::Type::Integer, default: 18
attribute :email, Swift::Type::String
- attribute :verified, Swift::Type::Boolean, default: false
- attribute :created_at, Swift::Type::Time, default: proc { Time.now }
+ attribute :verified, Swift::Type::Boolean, default: false
+ attribute :created_at, Swift::Type::DateTime, default: proc { Time.now }
end
end
describe 'attributes' do
it 'defines attributes' do