Skip to content

Commit

Permalink
+ Updated for new hoe capabilities.
Browse files Browse the repository at this point in the history
- Fixed stale tests
[git-p4: depot-paths = "//src/minitest_tu_shim/dev/": change = 5085]
  • Loading branch information
zenspider committed Jun 18, 2009
1 parent ab7b5d3 commit c4facdb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
12 changes: 7 additions & 5 deletions Rakefile
Expand Up @@ -9,12 +9,14 @@ Hoe.add_include_dirs "../../minitest/dev/lib", "lib"

require 'test/unit/testcase'

Hoe.new('minitest_tu_shim', Test::Unit::TestCase::VERSION) do |shim|
shim.rubyforge_name = "bfts"
Hoe.plugin :perforce, :email # can't do minitest, so no seattlerb wrapper

shim.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
Hoe.spec 'minitest_tu_shim' do
developer 'Ryan Davis', 'ryand-ruby@zenspider.com'

shim.extra_deps << 'minitest'
self.rubyforge_name = "bfts"

extra_deps << 'minitest'
end

# vim: syntax=Ruby
# vim: syntax=ruby
16 changes: 8 additions & 8 deletions test/test_mini_test.rb
Expand Up @@ -420,7 +420,7 @@ def test_assert_includes
end

def test_assert_includes_triggered
@assertion_count = 4
@assertion_count = 3

e = @tc.assert_raises MiniTest::Assertion do
@tc.assert_includes [true], false
Expand Down Expand Up @@ -457,7 +457,7 @@ def test_assert_match

def test_assert_match_triggered
@assertion_count = 2
util_assert_triggered 'Expected /\d+/ to match "blah blah blah".' do
util_assert_triggered 'Expected "blah blah blah" to match /\d+/.' do
@tc.assert_match "blah blah blah", /\d+/
end
end
Expand All @@ -483,16 +483,12 @@ def test_assert_operator_triggered
end

def test_assert_raises
@assertion_count = 2

@tc.assert_raises RuntimeError do
raise "blah"
end
end

def test_assert_raises_triggered_different
@assertion_count = 2

e = assert_raises MiniTest::Assertion do
@tc.assert_raises RuntimeError do
raise SyntaxError, "icky"
Expand Down Expand Up @@ -727,7 +723,7 @@ def test_refute_includes
end

def test_refute_includes_triggered
@assertion_count = 4
@assertion_count = 3

e = @tc.assert_raises MiniTest::Assertion do
@tc.refute_includes [true], true
Expand Down Expand Up @@ -758,11 +754,15 @@ def test_refute_kind_of_triggered
end

def test_refute_match
@assertion_count = 2

@tc.refute_match "blah blah blah", /\d+/
end

def test_refute_match_triggered
util_assert_triggered 'Expected /\w+/ to not match "blah blah blah".' do
@assertion_count = 2

util_assert_triggered 'Expected "blah blah blah" to not match /\w+/.' do
@tc.refute_match "blah blah blah", /\w+/
end
end
Expand Down

0 comments on commit c4facdb

Please sign in to comment.