Skip to content

Commit

Permalink
Update Minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Aug 31, 2013
1 parent ed34150 commit a888020
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
22 changes: 22 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
PATH
remote: .
specs:
cri (2.4.0)
colored (>= 1.2)

GEM
remote: https://rubygems.org/
specs:
colored (1.2)
minitest (5.0.6)
rake (10.1.0)
yard (0.8.7)

PLATFORMS
ruby

DEPENDENCIES
cri!
minitest
rake
yard
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# Rake etc
require 'rake'
require 'minitest'
require 'minitest/unit'

# Cri itself
Expand Down Expand Up @@ -32,7 +33,7 @@ task :test do

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))

MiniTest::Unit.autorun
MiniTest.autorun

require 'test/helper.rb'

Expand Down
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'stringio'

class Cri::TestCase < MiniTest::Unit::TestCase
class Cri::TestCase < Minitest::Test

def setup
@orig_io = capture_io
Expand Down
6 changes: 3 additions & 3 deletions test/test_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ def test_help_with_optional_options
end
help = cmd.help

assert_match(help, /--long.*-s/m)
assert_match(help, /^\e\[33m --long \e\[0mlong$/)
assert_match(help, /^\e\[33m -s \e\[0mshort$/)
assert_match(/--long.*-s/m, help)
assert_match(/^\e\[33m --long \e\[0mlong$/, help)
assert_match(/^\e\[33m -s \e\[0mshort$/, help)
end

def test_modify_with_block_argument
Expand Down

0 comments on commit a888020

Please sign in to comment.