Sha256: ef81a7620507457ea96d6a0a75aa9ef8bd0a65fdb451a0768b9d1e85043e1924

Contents?: true

Size: 496 Bytes

Versions: 9

Compression:

Stored size: 496 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe "redis strings" do

  it "should read and write" do
    @onion.description.should == "a tasty food"

    @onion.description = "a delicious vegetable"
    @onion.description.should == "a delicious vegetable"

    @onion.description = ""
    @onion.description.should == ""

    @onion.description = nil
    @onion.description.should == "a tasty food"

    lambda { @onion.description = 12 }.should raise_exception(TypeError)
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blendris-1.2 spec/string_spec.rb
blendris-1.1 spec/string_spec.rb
blendris-1.0 spec/string_spec.rb
blendris-0.6 spec/string_spec.rb
blendris-0.5 spec/string_spec.rb
blendris-0.0.4 spec/string_spec.rb
blendris-0.0.3 spec/string_spec.rb
blendris-0.0.2 spec/string_spec.rb
blendris-0.0.1 spec/string_spec.rb