Sha256: 116d0268ecda7043d50a2ddadbd37253ab4710f9a89a7a0826efd6c039e83dac

Contents?: true

Size: 804 Bytes

Versions: 13

Compression:

Stored size: 804 Bytes

Contents

# Require the spec helper relative to this file
require File.join(File.dirname(__FILE__), %w[spec_helper])
require File.join(File.dirname(__FILE__), %w[custom_matchers_spec])
require File.join(File.dirname(__FILE__), %w[ .. lib services search])
require File.join(File.dirname(__FILE__), %w[ .. lib services activity])
include Active
include Active::Services


describe Active do

  it "shouls set memcache" do
    Active.CACHE.should be_nil
    Active.memcache_host "localhost:11211"
    Active.CACHE.should_not be_nil    
  end
  
  it "should have a working memcache" do
    Active.memcache_host "localhost:11211"
    Active.CACHE.set("active","rocks");
    Active.CACHE.get("active").should eql("rocks")
  end
  
  it "should cache the data" do
    Active.memcache_host "localhost:11211"
  end
  
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
Active-0.0.42 spec/Active_spec.rb
Active-0.0.41 spec/Active_spec.rb
Active-0.0.40 spec/Active_spec.rb
Active-0.0.39 spec/Active_spec.rb
Active-0.0.38 spec/Active_spec.rb
Active-0.0.37 spec/Active_spec.rb
Active-0.0.36 spec/Active_spec.rb
Active-0.0.35 spec/Active_spec.rb
Active-0.0.34 spec/Active_spec.rb
Active-0.0.32 spec/Active_spec.rb
Active-0.0.31 spec/Active_spec.rb
Active-0.0.30 spec/Active_spec.rb
Active-0.0.29 spec/Active_spec.rb