Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
colorize output and reveal tests that never ran
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Sep 27, 2012
1 parent d765772 commit 4b0143f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -4,3 +4,4 @@ source 'https://rubygems.org'
gemspec

gem 'rake'
gem 'test-unit', '>= 2.5.2'
8 changes: 4 additions & 4 deletions test/test_idres.rb
Expand Up @@ -63,7 +63,7 @@ def mkMsg(ns, fields, signed_fields)
[["openid1", OPENID1_NS, OPENID1_FIELDS],
["openid1", OPENID11_NS, OPENID1_FIELDS],
["openid2", OPENID2_NS, OPENID2_FIELDS],
].each do |ver, ns, all_fields|
].each_with_index do |(ver, ns, all_fields), i|
all_fields.each do |field|
test = lambda do
fields = all_fields.dup
Expand All @@ -74,7 +74,7 @@ def mkMsg(ns, fields, signed_fields)
idres.send(:check_for_fields)
}
end
define_method("test_#{ver}_check_missing_#{field}", test)
define_method("test_#{i}_#{ver}_check_missing_#{field}", test)
end
end
end
Expand All @@ -84,7 +84,7 @@ def mkMsg(ns, fields, signed_fields)
[["openid1", OPENID1_NS, OPENID1_FIELDS, OPENID1_SIGNED],
["openid1", OPENID11_NS, OPENID1_FIELDS, OPENID1_SIGNED],
["openid2", OPENID2_NS, OPENID2_FIELDS, OPENID2_SIGNED],
].each do |ver, ns, all_fields, signed_fields|
].each_with_index do |(ver, ns, all_fields, signed_fields), i|
signed_fields.each do |signed_field|
test = lambda do
fields = signed_fields.dup
Expand All @@ -97,7 +97,7 @@ def mkMsg(ns, fields, signed_fields)
idres.send(:check_for_fields)
}
end
define_method("test_#{ver}_check_missing_signed_#{signed_field}", test)
define_method("test_#{i}_#{ver}_check_missing_signed_#{signed_field}", test)
end
end
end
Expand Down

0 comments on commit 4b0143f

Please sign in to comment.