From f3446f333ea4982dd51fcdd306a654356c7caff0 Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Fri, 2 Dec 2011 16:48:56 +1100 Subject: [PATCH] Update tests --- Gemfile.lock | 12 ++++++++---- test/hsmr_test.rb | 4 ++-- test/test_helper.rb | 5 ----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 6dbbe59..40f16cb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,8 @@ +PATH + remote: . + specs: + hsmr (0.0.1) + GEM remote: http://rubygems.org/ specs: @@ -5,14 +10,13 @@ GEM multi_json (~> 1.0) factory_girl (2.2.0) activesupport - growl (1.0.3) guard (0.8.8) thor (~> 0.14.6) guard-test (0.4.1) guard (>= 0.4) test-unit (~> 2.2) multi_json (1.0.3) - rb-fsevent (0.4.3.1) + rake (0.9.2.2) test-unit (2.4.1) thor (0.14.6) @@ -21,6 +25,6 @@ PLATFORMS DEPENDENCIES factory_girl - growl guard-test - rb-fsevent + hsmr! + rake diff --git a/test/hsmr_test.rb b/test/hsmr_test.rb index 7022acc..f0f15c1 100644 --- a/test/hsmr_test.rb +++ b/test/hsmr_test.rb @@ -78,7 +78,7 @@ class TestHSMR < Test::Unit::TestCase def test_should_detect_odd_parity_in_a_key odd_key = HSMR::Key.new("41A2AC14A90C583741A2AC14A90C5837") - assert_false odd_key.odd_parity? + assert odd_key.odd_parity? == false end def test_should_set_double_length_key_parity_to_odd @@ -93,7 +93,7 @@ class TestHSMR < Test::Unit::TestCase def test_should_detect_odd_parity_in_a_component odd_component = HSMR::Component.new("41A2AC14A90C583741A2AC14A90C5837") - assert_false odd_component.odd_parity? + assert odd_component.odd_parity? == false end def test_should_set_double_length_component_parity_to_odd diff --git a/test/test_helper.rb b/test/test_helper.rb index 660d95a..b9a3f00 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,7 +1,2 @@ require "test/unit" -#require "./lib/hsmr" -#require "./lib/hsmr/key" -#require "./lib/hsmr/component" require "hsmr" -#require "hsmr/key" -#require "hsmr/component"