Sha256: 30ff16d168e22735d61b7a4d2fc518a4e70afa2d9035bd8f8031f1d5272604ae

Contents?: true

Size: 383 Bytes

Versions: 4

Compression:

Stored size: 383 Bytes

Contents

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

describe "redis integers" do

  it "should always be an integer" do
    @onion.calories.should == 0
    @onion.calories = 450
    @onion.calories.should == 450
    @onion[:calories].increment.should == 451
    @onion.calories.should == 451
    @onion[:calories].decrement.should == 450
    @onion.calories.should == 450
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blendris-1.2 spec/integer_spec.rb
blendris-1.1 spec/integer_spec.rb
blendris-1.0 spec/integer_spec.rb
blendris-0.6 spec/integer_spec.rb