Sha256: 17c347fffc493d96b7a4c184c5d3a4607511ce95ed37a7dd90a4aa0e5f6cb763
Contents?: true
Size: 582 Bytes
Versions: 3
Compression:
Stored size: 582 Bytes
Contents
require 'spec_helper' describe BasicCache do describe '.new' do it 'creates cache objects' do expect(BasicCache.new).to be_an_instance_of BasicCache::Cache end end describe '.get_caller' do it "returns the calling function's name" do expect(BasicCache.get_caller).to eql 'instance_eval' end it 'uses caller_locations on Ruby 2.0.0+' do expect(BasicCache::NEW_CALL).to be_true if RUBY_VERSION.to_i >= 2 end it 'uses caller on Ruby 1.x' do expect(BasicCache::NEW_CALL).to be_false if RUBY_VERSION.to_i < 2 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basiccache-0.0.25 | spec/basiccache_spec.rb |
basiccache-0.0.24 | spec/basiccache_spec.rb |
basiccache-0.0.22 | spec/basiccache_spec.rb |