Sha256: 145a2acf30af56f000e22ab3d3112ee5ac4b92fe65bb22e65a65937b78aa72d5
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
require 'gcc_to_clang_analyzer/rewrite_plist_file' describe RewritePlistFile do it 'should replace the files array with a prefixed version' do original_plist = <<-eos <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>clang_version</key> <string>clang version 3.4 (trunk 182989)</string> <key>files</key> <array> <string>src/eeprommanager/main1.cpp</string> <string>src/eeprommanager/main2.cpp</string> </array> </dict> </plist> eos should_be_plist = <<-eos <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>clang_version</key> <string>clang version 3.4 (trunk 182989)</string> <key>files</key> <array> <string>test/src/eeprommanager/main1.cpp</string> <string>test/src/eeprommanager/main2.cpp</string> </array> </dict> </plist> eos new_plist = RewritePlistFile.with_prefix('test', original_plist) new_plist.should eq(should_be_plist) end end
Version data entries
5 entries across 5 versions & 1 rubygems