spec/properties/hide_mark_spec.rb in openxml-docx-0.10.5 vs spec/properties/hide_mark_spec.rb in openxml-docx-0.10.6
- old
+ new
@@ -1,23 +1,22 @@
require "spec_helper"
describe OpenXml::Docx::Properties::HideMark do
include ValuePropertyTestMacros
- it_should_use tag: :hideMark, name: "hide_mark"
+ it_should_use tag: :hideMark, name: "hide_mark", value: true
with_value(true) do
it_should_work
it_should_output "<w:hideMark/>"
end
with_value(false) do
it_should_work
- it_should_output ""
+ it_should_output "<w:hideMark w:val=\"false\"/>"
end
with_value(nil) do
- it_should_work
- it_should_output ""
+ it_should_not_work
end
end