Sha256: ec4fe6d0bb1a3b52bbda3fe01ef59159aad9543a3b4afc40774d4b812370cf8e

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

# -*- encoding : utf-8 -*-

describe Card::Set::All::AttributeTracking do
  context "new card" do
    before(:each) do
      Card::Auth.as_bot do
        @c = Card.new :name=>"New Card", :content=>"Great Content"
      end
    end

    it "should have updates" do
      described_class::Updates.should === @c.updates
    end

    it "should track changes" do
      @c.name.should == 'New Card'
      @c.name = 'Old Card'
      @c.name.should == 'Old Card'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wagn-1.13.0 spec/mod/core/set/all/attribute_tracking_spec.rb
wagn-1.13.0.pre2 spec/mods/core/sets/all/attribute_tracking_spec.rb
wagn-1.13.0.pre1 spec/mods/core/sets/all/attribute_tracking_spec.rb
wagn-1.13.0.pre spec/mods/core/sets/all/attribute_tracking_spec.rb