Sha256: 530d66eb44e5d104f8d1fe78780ac51ccc58814c0bd6039599dccd052d12f55f

Contents?: true

Size: 398 Bytes

Versions: 7

Compression:

Stored size: 398 Bytes

Contents

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

describe Card::Action do
  describe '#delete_old_actions' do
    it 'puts all changes on one action' do
      a = Card['A']
      a.update_attributes!(:name=>"New A")
      a.update_attributes!(:content=>"New content")
      a.delete_old_actions
      expect(a.actions.count).to eq(1)
      expect(a.actions(true).last.new_values[:name]).to eq("New A")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
card-1.16.6 spec/lib/card/action_spec.rb
card-1.16.5 spec/lib/card/action_spec.rb
card-1.16.4 spec/lib/card/action_spec.rb
card-1.16.3 spec/lib/card/action_spec.rb
card-1.16.2 spec/lib/card/action_spec.rb
card-1.16.1 spec/lib/card/action_spec.rb
card-1.16.0 spec/lib/card/action_spec.rb