spec/properties/language_spec.rb in openxml-docx-0.8.0 vs spec/properties/language_spec.rb in openxml-docx-0.9.0
- old
+ new
@@ -4,26 +4,17 @@
include PropertyTestMacros
it_should_use tag: :lang, name: "language"
for_attribute(:bidi) do
- with_value("en-US") do
- it_should_assign_successfully
- it_should_output "<w:lang w:bidi=\"en-US\"/>"
- end
+ it_should_assign_and_output_xml "en-US"
end
for_attribute(:east_asia) do
- with_value("ko-KR") do
- it_should_assign_successfully
- it_should_output "<w:lang w:eastAsia=\"ko-KR\"/>"
- end
+ it_should_assign_and_output_xml "ko-KR"
end
for_attribute(:latin) do
- with_value("fr-CA") do
- it_should_assign_successfully
- it_should_output "<w:lang w:val=\"fr-CA\"/>"
- end
+ it_should_assign_and_output_xml "fr-CA"
end
end