diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index f2d3aed..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1 +0,0 @@ -repo_token: s4N1MXo48ujETQzbihJIj9jGxtVzXw7RU diff --git a/Rakefile b/Rakefile index 41a5024..158c65b 100644 --- a/Rakefile +++ b/Rakefile @@ -17,9 +17,8 @@ Bundler::GemHelper.install_tasks desc "Run all of the tests" Rake::TestTask.new do |config| config.libs << 'test' - config.pattern = 'test/**/*_test*' + config.pattern = 'test/**/*_test.rb' config.verbose = true - config.warning = true end desc "Generate all of the docs" diff --git a/test/helper.rb b/test/helper.rb index 36f907c..4ca1b2c 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,4 +1,7 @@ require 'coveralls' -Coveralls.wear! +Coveralls.wear! do + add_filter "/test/" +end +require 'minitest/autorun' require 'timecop' require 'time-lord' diff --git a/test/lib/time-lord/extentions/integer_test.rb b/test/lib/time-lord/extentions/integer_test.rb index 8b8f488..441bf5a 100644 --- a/test/lib/time-lord/extentions/integer_test.rb +++ b/test/lib/time-lord/extentions/integer_test.rb @@ -1,4 +1,4 @@ -require 'minitest/autorun' + require 'helper' class TestTimeLordExtentionsInteger < MiniTest::Unit::TestCase diff --git a/test/lib/time-lord/extentions/time_test.rb b/test/lib/time-lord/extentions/time_test.rb index 45107f2..380bf92 100644 --- a/test/lib/time-lord/extentions/time_test.rb +++ b/test/lib/time-lord/extentions/time_test.rb @@ -1,4 +1,4 @@ -require 'minitest/autorun' + require_relative '../../../helper' class TestTimeLordExtentionsTime < MiniTest::Unit::TestCase diff --git a/test/lib/time-lord/period_test.rb b/test/lib/time-lord/period_test.rb index 2261ed0..2e4acef 100644 --- a/test/lib/time-lord/period_test.rb +++ b/test/lib/time-lord/period_test.rb @@ -1,4 +1,4 @@ -require 'minitest/autorun' + require 'helper' class TestTimeLordPeriod < MiniTest::Unit::TestCase @@ -49,7 +49,7 @@ def test_in_words_future_year def test_in_words_between_11_months_and_year expected = "11 months from now" Timecop.freeze(Time.local(2013, 1, 1)) - actual = Time.local(2013, 12, 3).ago.in_words + actual = Time.local(2013, 12, 1).ago.in_words assert_equal(expected, actual) end diff --git a/test/lib/time-lord/scale_test.rb b/test/lib/time-lord/scale_test.rb index 2597155..2bc1502 100644 --- a/test/lib/time-lord/scale_test.rb +++ b/test/lib/time-lord/scale_test.rb @@ -1,4 +1,4 @@ -require 'minitest/autorun' + require 'helper' class TestTimeLordScale < MiniTest::Unit::TestCase diff --git a/test/lib/time-lord/time_test.rb b/test/lib/time-lord/time_test.rb index 5fddd73..4582583 100644 --- a/test/lib/time-lord/time_test.rb +++ b/test/lib/time-lord/time_test.rb @@ -1,4 +1,4 @@ -require 'minitest/autorun' + require 'helper' class TestTimeLordTime < MiniTest::Unit::TestCase diff --git a/test/lib/time-lord_test.rb b/test/lib/time-lord_test.rb index 10ddd50..af175da 100644 --- a/test/lib/time-lord_test.rb +++ b/test/lib/time-lord_test.rb @@ -1,4 +1,4 @@ -require 'minitest/autorun' + require 'helper' class TestTimeLord < MiniTest::Unit::TestCase