spec/arachni/cache/random_replacement_spec.rb in arachni-0.4.1.3 vs spec/arachni/cache/random_replacement_spec.rb in arachni-0.4.2
- old
+ new
@@ -2,11 +2,11 @@
describe Arachni::Cache::RandomReplacement do
before { @cache = Arachni::Cache::RandomReplacement.new }
- it 'should prune itself by removing random entries (Random Replacement)' do
+ it 'prunes itself by removing random entries (Random Replacement)' do
@cache.max_size = 3
k = [ :k, :k2, :k3, :k4 ]
@cache[k[0]] = '1'
@cache[k[1]] = '2'
@@ -26,15 +26,15 @@
k[0...3].map { |key| @cache[key] }.count( nil ).should == 2
end
describe '#[]=' do
- it 'should store an object' do
+ it 'stores an object' do
v = 'val'
(@cache[:key] = v).should == v
@cache[:key].should == v
end
- it 'should be an alias of #store' do
+ it 'alias of #store' do
v = 'val2'
@cache.store( :key2, v ).should == v
@cache[:key2].should == v
end
end