Sha256: 897b8a853d0e1c0060315f3cf5428e7acb7566616680859fbdf9f6c187a2635a

Contents?: true

Size: 462 Bytes

Versions: 7

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

7 entries across 7 versions & 1 rubygems

Version Path
card-1.19.6 mod/core/spec/set/all/content_spec.rb
card-1.19.5 mod/core/spec/set/all/content_spec.rb
card-1.19.4 mod/core/spec/set/all/content_spec.rb
card-1.19.3 mod/core/spec/set/all/content_spec.rb
card-1.19.2 mod/core/spec/set/all/content_spec.rb
card-1.19.1 mod/core/spec/set/all/content_spec.rb
card-1.19.0 mod/core/spec/set/all/content_spec.rb