Browse files

Minor: spec tweaks.

  • Loading branch information...
1 parent 97c7d24 commit 05ba475f8ff41a461c68876df6cf7e4def6b7251 @jnunemaker committed Jun 15, 2010
Showing with 3 additions and 6 deletions.
  1. +3 −6 spec/bin/store_spec.rb
View
9 spec/bin/store_spec.rb
@@ -6,13 +6,10 @@
collection.remove
collection.drop_indexes
end
-
- @collection = DB['bin_cache']
- @store = Bin::Store.new(@collection)
end
- let(:store) { @store }
- let(:collection) { @collection }
+ let(:collection) { DB['bin_cache'] }
+ let(:store) { Bin::Store.new(collection) }
it "has a collection" do
store.collection.should == collection
@@ -23,7 +20,7 @@
end
it "can set default expires_in" do
- Bin::Store.new(@collection, :expires_in => 5.minutes).expires_in.should == 5.minutes
+ Bin::Store.new(collection, :expires_in => 5.minutes).expires_in.should == 5.minutes
end
describe "#write" do

0 comments on commit 05ba475

Please sign in to comment.