test/test_message.rb in pinch_hitter-0.5.6 vs test/test_message.rb in pinch_hitter-0.6.0
- old
+ new
@@ -24,11 +24,11 @@
def json_file
"minitest_json"
end
def xml_message
-%Q{<?xml version="1.0" encoding="UTF-8"?>
+%Q{<?xml version='1.0' encoding='UTF-8'?>
<Body/>
}
end
def json_message
@@ -40,20 +40,20 @@
def test_setting_dir
@messages.message_directory = "/foo"
assert_equal "/foo", @messages.message_directory
end
-
+
def test_loads_xml
assert_equal xml_message, @messages.load(xml_filename.to_sym)
end
def test_loads_json
assert_equal json_message, @messages.load(json_file.to_sym)
end
def test_message_no_whitespace
- squish = %Q{<?xml version="1.0" encoding="UTF-8"?><Body/>}
+ squish = %Q{<?xml version='1.0' encoding='UTF-8'?><Body/>}
assert_equal squish, @messages.load(xml_filename.to_sym).squish
end
def test_content_type_defaults_to_xml
assert_equal "text/xml", @messages.determine_content_type("")