Sha256: 6e0984a76b5d8e01b39489a97146832982f45e139307e2233afc22baffe4cb29

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Elements::BookFoldPrinting do
  include ElementTestMacros

  it_should_use tag: :bookFoldPrinting, name: "book_fold_printing"

  for_attribute(:value) do
    with_value(true) do
      it_should_assign_successfully
      it_should_output "<w:bookFoldPrinting w:val=\"true\"/>"
    end

    with_value("true") do
      it_should_raise_an_exception
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/elements/book_fold_printing_spec.rb
openxml-docx-0.10.5 spec/elements/book_fold_printing_spec.rb
openxml-docx-0.10.4 spec/elements/book_fold_printing_spec.rb
openxml-docx-0.10.3 spec/elements/book_fold_printing_spec.rb
openxml-docx-0.10.2 spec/elements/book_fold_printing_spec.rb
openxml-docx-0.10.1 spec/elements/book_fold_printing_spec.rb