Sha256: 0a1f8a101ad7a2cb61be202aeb76ad9e8694d8123671e18d55b0c672a1667d4d

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

require 'helper'

class AxleAttributes::TimestampAttributesTest < ActiveSupport::TestCase
  class Product < Superstore::Base
    include AxleAttributes::Model
  end

  test 'timestamps' do
    assert_not_nil Product.attributes['created_at']
    assert_not_nil Product.attributes['updated_at']
    assert Product.attributes['created_at'].readonly?
    assert Product.attributes['updated_at'].readonly?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axle_attributes-1.13.2 test/lib/timestamp_attributes_test.rb