Sha256: 43d806aafdfb57be71afaf195e6729c7514724138d564b8f2dd2b974e7a8b4f1
Contents?: true
Size: 653 Bytes
Versions: 3
Compression:
Stored size: 653 Bytes
Contents
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') require 'wurfl/utils' require 'wurfl/loader' require 'test/unit' require 'tempfile' class TestLoader < Test::Unit::TestCase include Wurfl::Utils def test_save_and_load_wurfl_pstore loader = Wurfl::Loader.new handsets, fallbacks = loader.load_wurfl(File.join(File.dirname(__FILE__), "data", "wurfl.simple.xml")) tempfile = Tempfile.new("wurfl.pstore").path save_wurfl_pstore(tempfile,handsets,fallbacks) loaded_handsets, loaded_fallbacks = load_wurfl_pstore(tempfile) assert_equal handsets, loaded_handsets assert_equal fallbacks, loaded_fallbacks end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wurfl-1.1.1 | test/utils_test.rb |
wurfl-1.1.2 | test/utils_test.rb |
wurfl-1.2.0 | test/utils_test.rb |