Sha256: 7d3a68535c05697041189bfa8d40d4f6f30073d930240134538e0daa300dc7d4
Contents?: true
Size: 669 Bytes
Versions: 5
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' describe Gxapi do before(:all) do Gxapi.config_path = File.expand_path( "../../support/config.yml", __FILE__ ) Gxapi.env = "test" end context ".cache" do it "should have a cache that gets defined by default" do Gxapi.cache.should be_kind_of(ActiveSupport::Cache::Store) end context "with Rails" do it "should use the Rails cache once it is available" do Gxapi.cache.should be Rails.cache end it "should still allow you to override the cache" do my_cache = stub() Gxapi.cache = my_cache Gxapi.cache.should eql(my_cache) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems