Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for mocha 0.12 vs 2.5.1 #35

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/test/unit/testsuite.rb
Expand Up @@ -78,7 +78,7 @@ def size
@tests.each { |test| total_size += test.size }
total_size
end

def empty?
tests.empty?
end
Expand All @@ -88,7 +88,7 @@ def empty?
def to_s
@name
end

# It's handy to be able to compare TestSuite instances.
def ==(other)
return false unless(other.kind_of?(self.class))
Expand All @@ -114,6 +114,7 @@ def run_test(test, result)
finished_is_yielded = false
finished_object_is_yielded = false
previous_event_name = nil
return unless test.respond_to?(:run) # missing from some irrelevant things in ActiveSupport v2
test.run(result) do |event_name, *args|
case previous_event_name
when Test::Unit::TestCase::STARTED
Expand Down