Sha256: 68164afaed956d29cab1f744ca3bbd60e54e252d37b3b49ea4f3e58e2137311e

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

Stored size: 439 Bytes

Contents

require "spec_helper"

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

  it_should_use tag: :snapToGrid, name: "snap_to_grid"

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

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

  with_value(nil) do
    it_should_work
    it_should_output ""
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

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