Sha256: 109db7bb63abc626e3d21d90b9f3dba6a087d735ece6d03496af6a3fd84d57a3
Contents?: true
Size: 995 Bytes
Versions: 1
Compression:
Stored size: 995 Bytes
Contents
require "test_helper" class KeepNextTest < PropertyTest attr_reader :keep_next context "always" do setup do @keep_next = Rocx::Properties::KeepNext.new(false) end should "have the right tag" do assert_equal :keepNext, keep_next.tag end should "have the right name" do assert_equal "keep_next", keep_next.name end end context "when the value is true, it" do setup do @keep_next = Rocx::Properties::KeepNext.new(true) end should "return XML" do assert_equal "<w:keepNext/>", xml(keep_next) end end context "when the value is false, it" do setup do @keep_next = Rocx::Properties::KeepNext.new(false) end should "not return XML" do assert_equal "", xml(keep_next) end end context "when the value is nil, it" do setup do @keep_next = Rocx::Properties::KeepNext.new(nil) end should "not return XML" do assert_equal "", xml(keep_next) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rocx-0.5.6 | test/properties/keep_next_test.rb |