spec/key_spec.rb in redistat-0.2.2 vs spec/key_spec.rb in redistat-0.2.3

- old
+ new

@@ -11,11 +11,11 @@ @date = Time.now @key = Redistat::Key.new(@scope, @label, @date, {:depth => :hour}) end it "should initialize properly" do - @key.scope.should == @scope + @key.scope.to_s.should == @scope @key.label.to_s.should == @label @key.label_hash.should == @label_hash @key.groups.map { |k| k.instance_variable_get("@label") }.should == @key.instance_variable_get("@label").groups @key.date.should be_instance_of(Redistat::Date) @key.date.to_time.to_s.should == @date.to_s @@ -42,13 +42,13 @@ @key.depth.should == :hour end it "should allow changing attributes" do # scope - @key.scope.should == @scope + @key.scope.to_s.should == @scope @scope = "VisitorCount" @key.scope = @scope - @key.scope.should == @scope + @key.scope.to_s.should == @scope # date @key.date.to_time.to_s.should == @date.to_s @date = Time.now @key.date = @date @key.date.to_time.to_s.should == @date.to_s \ No newline at end of file