Sha256: 28efea0adb60d287d1962c141dc92c68632613680d7ea146c24572106918f71a
Contents?: true
Size: 659 Bytes
Versions: 4
Compression:
Stored size: 659 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "redis lists" do it "should read and write" do @onion.sales.count.should == 0 @onion.sales << %w( to-bill to-tom to-bill to-bob to-tom ) @onion.sales.count.should == 5 @onion.sales.to_a.should == %w( to-bill to-tom to-bill to-bob to-tom ) @onion.sales.delete("to-bill").should == 2 @onion.sales.delete("to-bob").should == 1 @onion.sales.to_a.should == %w( to-tom to-tom ) end it "should be able to be set to a new list" do @onion.sales = %w( one two three ) @onion.sales.count.should == 3 @onion.sales.to_a.should == %w( one two three ) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
blendris-1.2 | spec/list_spec.rb |
blendris-1.1 | spec/list_spec.rb |
blendris-1.0 | spec/list_spec.rb |
blendris-0.6 | spec/list_spec.rb |