Sha256: 0c749147cb0626707dd2cd07bdc77a3ad89500d84f308ef494e798cf440b83b2

Contents?: true

Size: 228 Bytes

Versions: 5

Compression:

Stored size: 228 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

describe "Magic Columns" do
  
  it "should update updated_at on save" do
    zoo = Zoo.new(:name => 'Mary')
    zoo.save
    zoo.updated_at.should be_a_kind_of(Time)
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datamapper-0.2.1 spec/magic_columns_spec.rb
datamapper-0.2.2 spec/magic_columns_spec.rb
datamapper-0.2.3 spec/magic_columns_spec.rb
datamapper-0.2.4 spec/magic_columns_spec.rb
datamapper-0.2.5 spec/magic_columns_spec.rb