diff options
Diffstat (limited to 'test/doc_props/tc_core.rb')
| -rw-r--r-- | test/doc_props/tc_core.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/doc_props/tc_core.rb b/test/doc_props/tc_core.rb index 9714a6eb..bfacab45 100644 --- a/test/doc_props/tc_core.rb +++ b/test/doc_props/tc_core.rb @@ -27,7 +27,7 @@ class TestCore < Test::Unit::TestCase def test_created_as_option time = Time.utc(2013, 1, 1, 12, 0) - c = Axlsx::Core.new :created => time + c = Axlsx::Core.new created: time doc = Nokogiri::XML(c.to_xml_string) assert_equal(doc.xpath('//dcterms:created').text, time.xmlschema, "dcterms:created incorrect") @@ -38,7 +38,7 @@ class TestCore < Test::Unit::TestCase end def test_creator_as_option - c = Axlsx::Core.new :creator => "some guy" + c = Axlsx::Core.new creator: "some guy" doc = Nokogiri::XML(c.to_xml_string) assert_equal("some guy", doc.xpath('//dc:creator').text) |
