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