Sha256: 18f1fc996d2622a119d9398654b650f3943fbb9fa9b4ac6820a6c8e27d1b140e
Contents?: true
Size: 998 Bytes
Versions: 1
Compression:
Stored size: 998 Bytes
Contents
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') require "xcselect" require "test/unit" require "time" include Xcselect class NKIssueTest < Test::Unit::TestCase attr_accessor :issues def setup @issues = NKIssue.parse "big_cats.plist" end def test_parser versions = {"Panther" => "October 24, 2003", "Tiger" => "April 29, 2005", "Leopard" => "October 26, 2007", "Snow Leopard" => "August 28, 2009", "Lion" => "July 20, 2011", "Mountain Lion" => "July 25, 2012", "Jaguar" => "May 6, 2002" } versions.each_key do |k| nkissue = issues[k] release_date = Time.strptime(versions[k], "%b %d, %Y") # test correct date assert_equal(nkissue.date, release_date) # test uuid is set assert(!nkissue.uuid.size.zero?) assert_equal(7, issues.size) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xcselect-0.1.4 | tests/test_nkissue.rb |