Sha256: f2667190076d902408276ae137dcbf1ffab94bf22e03d8831b4d9f66fc7b9276
Contents?: true
Size: 1.1 KB
Versions: 3
Compression:
Stored size: 1.1 KB
Contents
require "spec_helper" describe Rocx::Properties::ManualWidth do include PropertyTestMacros it_should_use tag: :fitText, name: "manual_width" for_attribute(:id) do with_value(12) do it_should_assign_successfully it_should_output "<w:fitText w:id=\"12\"/>" end with_value(-134) do it_should_assign_successfully it_should_output "<w:fitText w:id=\"-134\"/>" end with_value(12.3) do it_should_raise_an_exception end with_value(:three) do it_should_raise_an_exception end end for_attribute(:width) do with_value(12) do it_should_assign_successfully it_should_output "<w:fitText w:val=\"12\"/>" end with_value(-134) do it_should_raise_an_exception end with_value(12.3) do it_should_raise_an_exception end with_value(:three) do it_should_raise_an_exception end end with_no_attributes_set do it_should_output "", assign: false end with_these_attributes_set(id: 50, width: 720) do it_should_output "<w:fitText w:id=\"50\" w:val=\"720\"/>", assign: false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rocx-0.7.0 | spec/properties/manual_width_spec.rb |
rocx-0.6.0 | spec/properties/manual_width_spec.rb |
rocx-0.5.8 | spec/properties/manual_width_spec.rb |