Sha256: e0e268eb220c96d0844e93a796b7f3a1709af88631ee14ba6a605937e6582a71

Contents?: true

Size: 589 Bytes

Versions: 4

Compression:

Stored size: 589 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')

class VersionedTest < Test::Unit::TestCase
  context 'ActiveRecord models' do
    should 'respond to the "versioned?" method' do
      assert ActiveRecord::Base.respond_to?(:versioned?)
      assert User.respond_to?(:versioned?)
    end

    should 'return true for the "versioned?" method if the model is versioned' do
      assert_equal true, User.versioned?
    end

    should 'return false for the "versioned?" method if the model is not versioned' do
      assert_equal false, ActiveRecord::Base.versioned?
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
nickjones-vestal_versions-1.0.3 test/versioned_test.rb
vestal_versions-1.0.2 test/versioned_test.rb
vestal_versions-1.0.1 test/versioned_test.rb
vestal_versions-1.0.0 test/versioned_test.rb