Sha256: 4c038780a667eeb89df545be863786555614d58b69b03147f0a2f97a127b84be

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

Bundler.require
require 'patella'
require 'test/unit'
require 'active_support'
require 'active_support/test_case'
require 'json'
require 'mocha'
require 'bourne'

unless defined?(Rails)
module Rails
  class MockCache
    def fetch(*args)
      yield
    end
    def write(*args)
    end
  end

  def self.caching=(value)
    @caching=value
  end

  def self.caching?
    @caching
  end
  def self.cache
    @cache ||= MockCache.new
  end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
patella-0.0.3 test/test_helper.rb
patella-0.0.1 test/test_helper.rb