summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gemfile.lock1
-rw-r--r--hcl.gemspec1
-rw-r--r--test/app_test.rb2
-rw-r--r--test/command_test.rb2
-rw-r--r--test/day_entry_test.rb2
-rw-r--r--test/task_test.rb2
-rw-r--r--test/test_helper.rb4
-rw-r--r--test/timesheet_resource_test.rb2
-rw-r--r--test/utility_test.rb2
9 files changed, 10 insertions, 8 deletions
diff --git a/Gemfile.lock b/Gemfile.lock
index a0b8292..44ca467 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -41,6 +41,7 @@ PLATFORMS
DEPENDENCIES
fakeweb
hcl!
+ minitest
mocha
rake
rubinius-coverage
diff --git a/hcl.gemspec b/hcl.gemspec
index cad8cef..ec2222b 100644
--- a/hcl.gemspec
+++ b/hcl.gemspec
@@ -24,5 +24,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'yard'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'fakeweb'
+ s.add_development_dependency 'minitest'
end
diff --git a/test/app_test.rb b/test/app_test.rb
index 3226534..c533076 100644
--- a/test/app_test.rb
+++ b/test/app_test.rb
@@ -1,5 +1,5 @@
require 'test_helper'
-class AppTest < Test::Unit::TestCase
+class AppTest < MiniTest::Unit::TestCase
def setup
# touch config to avoid triggering manual config
diff --git a/test/command_test.rb b/test/command_test.rb
index b425974..61d9f22 100644
--- a/test/command_test.rb
+++ b/test/command_test.rb
@@ -1,5 +1,5 @@
require 'test_helper'
-class CommandTest < Test::Unit::TestCase
+class CommandTest < MiniTest::Unit::TestCase
include HCl::Commands
include HCl::Utility
diff --git a/test/day_entry_test.rb b/test/day_entry_test.rb
index 3e3d06a..8b68348 100644
--- a/test/day_entry_test.rb
+++ b/test/day_entry_test.rb
@@ -1,6 +1,6 @@
require 'test_helper'
-class DayEntryTest < Test::Unit::TestCase
+class DayEntryTest < MiniTest::Unit::TestCase
def test_from_xml
entries = HCl::DayEntry.from_xml(<<-EOD)
<daily>
diff --git a/test/task_test.rb b/test/task_test.rb
index 26648a3..ecffdb5 100644
--- a/test/task_test.rb
+++ b/test/task_test.rb
@@ -1,5 +1,5 @@
-class Task < Test::Unit::TestCase
+class Task < MiniTest::Unit::TestCase
def test_cache_file
assert_equal "#{HCl::App::HCL_DIR}/cache/tasks.yml", HCl::Task.cache_file
end
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 2d7ec9f..a09f25e 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -12,14 +12,14 @@ begin
minimum_coverage case RUBY_ENGINE
when "rbx" then 84
when "jruby" then 73
- else 78
+ else 77
end
end
rescue LoadError => e
$stderr.puts 'No test coverage tools found, skipping coverage check.'
end
-require 'test/unit'
+require 'minitest/autorun'
require 'mocha/setup'
require 'fileutils'
require 'fakeweb'
diff --git a/test/timesheet_resource_test.rb b/test/timesheet_resource_test.rb
index 93977f9..0ef6da1 100644
--- a/test/timesheet_resource_test.rb
+++ b/test/timesheet_resource_test.rb
@@ -1,6 +1,6 @@
require 'test_helper'
-class TimesheetResourceTest < Test::Unit::TestCase
+class TimesheetResourceTest < MiniTest::Unit::TestCase
def setup
FakeWeb.allow_net_connect = false
diff --git a/test/utility_test.rb b/test/utility_test.rb
index 2de6c89..f0652a0 100644
--- a/test/utility_test.rb
+++ b/test/utility_test.rb
@@ -1,6 +1,6 @@
require 'test_helper'
-class UtilityTest < Test::Unit::TestCase
+class UtilityTest < MiniTest::Unit::TestCase
include HCl::Utility
def test_time2float_decimal