Sha256: 948feea56afbbc912bc142359e17bd212a1d7c957a747c33f993a7349009726f

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'og', 'CONFIG.rb')

require 'rubygems'
require 'facets'
require 'test/unit'
require 'ostruct'

require 'og'
require 'glue/timestamped'

class TestCaseOgTimestamped < Test::Unit::TestCase # :nodoc: all

  class Article 
    is Glue::Timestamped
    attr_accessor :body, String

    def initialize(body = nil)
      @body = body
    end
  end

  $og1.manage_classes Article

  def test_all
    a = Article.create('article')
    a.save

    a = Article[1]
    assert a.create_time
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
og-0.41.0 test/glue/tc_timestamped.rb
og-0.40.0 test/glue/tc_timestamped.rb