Sha256: 2cb9083905e7a615bfcf6f5a2efd2d079aef85a6892dd7f06a7b7049545b55cf

Contents?: true

Size: 571 Bytes

Versions: 6

Compression:

Stored size: 571 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :bookFoldPrintingSheets, name: "book_fold_printing_sheets"

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

    with_value(-1) do
      it_should_raise_an_exception
    end

    with_value(1.1) do
      it_should_raise_an_exception
    end

    with_value(:not_a_number) 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_sheets_spec.rb
openxml-docx-0.10.5 spec/elements/book_fold_printing_sheets_spec.rb
openxml-docx-0.10.4 spec/elements/book_fold_printing_sheets_spec.rb
openxml-docx-0.10.3 spec/elements/book_fold_printing_sheets_spec.rb
openxml-docx-0.10.2 spec/elements/book_fold_printing_sheets_spec.rb
openxml-docx-0.10.1 spec/elements/book_fold_printing_sheets_spec.rb