Sha256: 80bbb21a0d0c83b0f34e606cd6a160909cd64918cfc3ffe60eaf3405fd16630e
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
require "test_helper" require "mediainfo_test_helper" class MediainfoStringTest < ActiveSupport::TestCase test "escaping slashes" do assert_equal '"foo\\\bar"', 'foo\bar'.shell_escape_double_quotes end test "escaping quotes" do assert_equal '"foo\"bar"', 'foo"bar'.shell_escape_double_quotes end test "escaping ticks" do assert_equal '"foo\`bar"', 'foo`bar'.shell_escape_double_quotes end test "escaping dollar signs" do assert_equal '"foo\$bar"', 'foo$bar'.shell_escape_double_quotes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mediainfo-0.7.2 | test/mediainfo_string_test.rb |
mediainfo-0.7.1 | test/mediainfo_string_test.rb |