Sha256: 3aefdfe21fa488331442461199362a43e8acf691d0b2b8429e165ee6651d9dbb
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 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 '#caller_name' do it "returns the calling function's name" do expect(BasicCache.caller_name).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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
basiccache-0.1.0 | spec/basiccache_spec.rb |
basiccache-0.0.29 | spec/basiccache_spec.rb |