Sha256: c9d186ebd3eda76edc248a331e161829ef7c0f8647de2f8cf6a40deb66bcc7a1

Contents?: true

Size: 532 Bytes

Versions: 15

Compression:

Stored size: 532 Bytes

Contents

require "spec_helper"

describe Redistat::Collection do
  
  it "should initialize properly" do
    options = {:from => "from", :till => "till", :depth => "depth"}
    result = Redistat::Collection.new(options)
    result.from.should == options[:from]
    result.till.should == options[:till]
    result.depth.should == options[:depth]
  end
  
  it "should have a total property" do
    col = Redistat::Collection.new()
    col.total.should == {}
    col.total = {:foo => "bar"}
    col.total.should == {:foo => "bar"}
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
redistat-0.3.0 spec/collection_spec.rb
redistat-0.2.6 spec/collection_spec.rb
redistat-0.2.5 spec/collection_spec.rb
redistat-0.2.4 spec/collection_spec.rb
redistat-0.2.3 spec/collection_spec.rb
redistat-0.2.2 spec/collection_spec.rb
redistat-0.2.1 spec/collection_spec.rb
redistat-0.2.0 spec/collection_spec.rb
redistat-0.1.1 spec/collection_spec.rb
redistat-0.1.0 spec/collection_spec.rb
redistat-0.0.9 spec/collection_spec.rb
redistat-0.0.8 spec/collection_spec.rb
redistat-0.0.7 spec/collection_spec.rb
redistat-0.0.6 spec/collection_spec.rb
redistat-0.0.5 spec/collection_spec.rb