Sha256: 89f9e0f895983548ad7098332100a6e1e04ce05329102d842bbed6ae58fcc92a

Contents?: true

Size: 344 Bytes

Versions: 11

Compression:

Stored size: 344 Bytes

Contents

require "test_helper"

class IdentityCacheTest < IdentityCache::TestCase

  class BadModel < ActiveRecord::Base
  end

  def test_identity_cache_raises_if_loaded_twice
    assert_raises(IdentityCache::AlreadyIncludedError) do
      BadModel.class_eval do
        include IdentityCache
        include IdentityCache
      end
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
identity_cache-0.2.2 test/identity_cache_test.rb
identity_cache-0.2.1 test/identity_cache_test.rb
identity_cache-0.2.0 test/identity_cache_test.rb
identity_cache-0.1.0 test/identity_cache_test.rb
identity_cache-0.0.7 test/identity_cache_test.rb
identity_cache-0.0.6 test/identity_cache_test.rb
identity_cache-0.0.5 test/identity_cache_test.rb
identity_cache-0.0.4 test/identity_cache_test.rb
identity_cache-0.0.3 test/identity_cache_test.rb
identity_cache-0.0.2 test/identity_cache_test.rb
identity_cache-0.0.1 test/identity_cache_test.rb