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