Sha256: 184ac1e410f4977d357a6a2f1a5abc1d27241e3df1300c976f205b10e691a355

Contents?: true

Size: 396 Bytes

Versions: 14

Compression:

Stored size: 396 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

14 entries across 14 versions & 1 rubygems

Version Path
card-1.17.4 spec/lib/card/action_spec.rb
card-1.17.3 spec/lib/card/action_spec.rb
card-1.17.2 spec/lib/card/action_spec.rb
card-1.17.1 spec/lib/card/action_spec.rb
card-1.17.0 spec/lib/card/action_spec.rb
card-1.16.15 spec/lib/card/action_spec.rb
card-1.16.14 spec/lib/card/action_spec.rb
card-1.16.13 spec/lib/card/action_spec.rb
card-1.16.12 spec/lib/card/action_spec.rb
card-1.16.11 spec/lib/card/action_spec.rb
card-1.16.10 spec/lib/card/action_spec.rb
card-1.16.9 spec/lib/card/action_spec.rb
card-1.16.8 spec/lib/card/action_spec.rb
card-1.16.7 spec/lib/card/action_spec.rb