Sha256: 8ae513f06d891b7156413c35a29d920d4291390a32344f1081b7133ee238f3eb

Contents?: true

Size: 349 Bytes

Versions: 10

Compression:

Stored size: 349 Bytes

Contents

require "spec_helper"

describe OpenXml::Docx::Properties::ParentStyle do
  include ValuePropertyTestMacros

  it_should_use tag: :basedOn, name: "parent_style", value: "Something"

  with_value("Something") do
    it_should_work
    it_should_output "<w:basedOn w:val=\"Something\"/>"
  end

  with_value(12.4) do
    it_should_not_work
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 spec/properties/parent_style_spec.rb
openxml-docx-0.10.5 spec/properties/parent_style_spec.rb
openxml-docx-0.10.4 spec/properties/parent_style_spec.rb
openxml-docx-0.10.3 spec/properties/parent_style_spec.rb
openxml-docx-0.10.2 spec/properties/parent_style_spec.rb
openxml-docx-0.10.1 spec/properties/parent_style_spec.rb
openxml-docx-0.10.0 spec/properties/parent_style_spec.rb
openxml-docx-0.9.0 spec/properties/parent_style_spec.rb
openxml-docx-0.8.0 spec/properties/parent_style_spec.rb
openxml-docx-0.8.0.beta1 spec/properties/parent_style_spec.rb