Sha256: f9e2eaebcc8c6680f80f9dfcd94899200729aec6b8a8d16f4164d78976cb2519

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

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

describe Card::Set::All::Content do
  describe 'save_content_draft' do
    it 'should store a draft revision' do
      @card = Card.create! name: 'mango', content: 'foo'
      @card.save_content_draft('bar')
      expect(@card.drafts.length).to eq 1
      @card.save_content_draft('booboo')
      @card.reload
      expect(@card.drafts.length).to eq 1
      expect(@card.drafts[0].value(:db_content)).to eq 'booboo'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.18.6 mod/01_core/spec/set/all/content_spec.rb
card-1.18.5 mod/01_core/spec/set/all/content_spec.rb
card-1.18.4 mod/01_core/spec/set/all/content_spec.rb
card-1.18.3 mod/01_core/spec/set/all/content_spec.rb
card-1.18.2 mod/01_core/spec/set/all/content_spec.rb