Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
hide that puppy somewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Nov 17, 2008
1 parent 5b163e2 commit 00180b8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/spec.rb
Expand Up @@ -7,16 +7,12 @@
require 'spec/version'
require 'spec/dsl'

def test_unit_defined?
Object.const_defined?(:Test) && Test.const_defined?(:Unit)
end

if test_unit_defined?
require 'spec/interop/test'
end

module Spec
class << self
def test_unit_defined?
Object.const_defined?(:Test) && Test.const_defined?(:Unit)
end

def run?
Runner.options.examples_run?
end
Expand All @@ -35,3 +31,7 @@ def spec_command?
end
end
end

if Spec::test_unit_defined?
require 'spec/interop/test'
end

0 comments on commit 00180b8

Please sign in to comment.