Sha256: 75deb41f403c66112b44afae9e75a6a60d627403ab36d7b53fa24366db0f31c5
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
require "spec_helper" describe Rocx::Properties::Color do include PropertyTestMacros it_should_use tag: :color, name: "color" for_attribute(:theme_color) do with_value(:hyperlink) do it_should_assign_successfully it_should_output "<w:color w:themeColor=\"hyperlink\"/>" end end for_attribute(:theme_shade) do with_value("BF") do it_should_assign_successfully it_should_output "<w:color w:themeShade=\"BF\"/>" end with_value(:dark) do it_should_raise_an_exception end end for_attribute(:theme_tint) do with_value("BF") do it_should_assign_successfully it_should_output "<w:color w:themeTint=\"BF\"/>" end with_value(:pink) do it_should_raise_an_exception end end for_attribute(:color) do with_value(:D99694) do it_should_assign_successfully it_should_output "<w:color w:val=\"D99694\"/>" end with_value(:auto) do it_should_assign_successfully it_should_output "<w:color w:val=\"auto\"/>" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rocx-0.7.0 | spec/properties/color_spec.rb |
rocx-0.6.0 | spec/properties/color_spec.rb |
rocx-0.5.8 | spec/properties/color_spec.rb |