Sha256: 10b9b0778060dca61aa90732909a1ddb6872bb76c0418188dd8696484dc40302

Contents?: true

Size: 394 Bytes

Versions: 14

Compression:

Stored size: 394 Bytes

Contents

require 'spec_helper'

describe AridCache::ActiveRecord do
  context 'respond_to?' do
    before :each do
      @class = Class.new(Class.new)
      @class.send(:include, AridCache)
    end

    it "should not fail if a superclass doesn't include AridCache" do
      lambda {
        @class.respond_to?(:cached_xxx).should be_false
      }.should_not raise_error(NoMethodError)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
arid_cache-1.4.4 spec/arid_cache/active_record_spec.rb
arid_cache-1.4.3 spec/arid_cache/active_record_spec.rb
arid_cache-1.4.2 spec/arid_cache/active_record_spec.rb
arid_cache-1.4.1 spec/arid_cache/active_record_spec.rb
arid_cache-1.4.0 spec/arid_cache/active_record_spec.rb
arid_cache-1.3.6 spec/arid_cache/active_record_spec.rb
arid_cache-1.3.5 spec/arid_cache/active_record_spec.rb
arid_cache-1.3.4 spec/arid_cache/active_record_spec.rb
arid_cache-1.3.3 spec/arid_cache/active_record_spec.rb
arid_cache-1.3.2 spec/arid_cache/active_record_spec.rb
arid_cache-1.3.1 spec/arid_cache/active_record_spec.rb
arid_cache-1.3.0 spec/arid_cache/active_record_spec.rb
arid_cache-1.2.0 spec/arid_cache/active_record_spec.rb
arid_cache-1.1.1 spec/arid_cache/active_record_spec.rb