Sha256: 8de03861d16c89e7648cc6628eb108ce7049bd9b0e85cc9b4a78a10ed2dc51c7

Contents?: true

Size: 437 Bytes

Versions: 7

Compression:

Stored size: 437 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'wagn/spec_helper'

describe Card::Set::All::Content do
  describe 'save_draft' do
    it 'should store a draft revision' do
      @card = Card.create! :name=>"mango", :content=>"foo"
      @card.save_draft("bar")
      assert_equal 1, @card.drafts.length
      @card.save_draft("booboo")
      assert_equal 1, @card.drafts.length
      assert_equal "booboo", @card.drafts[0].content
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wagn-1.12.13 spec/mods/core/sets/all/content_spec.rb
wagn-1.12.12 spec/mods/core/sets/all/content_spec.rb
wagn-1.12.11 spec/mods/core/sets/all/content_spec.rb
wagn-1.12.10 spec/mods/core/sets/all/content_spec.rb
wagn-1.12.9 spec/mods/core/sets/all/content_spec.rb
wagn-1.12.8 spec/mods/core/sets/all/content_spec.rb
wagn-1.12.7 spec/mods/core/sets/all/content_spec.rb