Sha256: ed556f09b7a96b04609256c47cde54b31dfaf3ab4214e402d196223ec8029d61

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

require_relative "../../../test_helper"

class ContentTagsCheckboxTest < ActiveSupport::TestCase

  setup do
    @page = comfy_cms_pages(:default)
  end

  def test_init
    tag = ComfortableMexicanSofa::Content::Tag::Checkbox.new(@page, "test")
    assert_equal "test", tag.identifier
  end

  def test_content
    frag = comfy_cms_fragments(:boolean)
    tag = ComfortableMexicanSofa::Content::Tag::Checkbox.new(@page, frag.identifier)
    assert_equal frag,          tag.fragment
    assert_equal frag.boolean,  tag.content
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.8 test/lib/content/tags/checkbox_test.rb
comfortable_mexican_sofa-2.0.7 test/lib/content/tags/checkbox_test.rb
comfortable_mexican_sofa-2.0.6 test/lib/content/tags/checkbox_test.rb
comfortable_mexican_sofa-2.0.5 test/lib/content/tags/checkbox_test.rb
comfortable_mexican_sofa-2.0.4 test/lib/content/tags/checkbox_test.rb
comfortable_mexican_sofa-2.0.3 test/lib/content/tags/checkbox_test.rb