lib/assert_value.rb in assert_value-1.5.1 vs lib/assert_value.rb in assert_value-1.5.2
- old
+ new
@@ -3,22 +3,9 @@
# there're 4 types of test frameworks we support
# 1) Test::Unit from Ruby <= 1.8.7 and Ruby >= 2.2.2
# 2) Minitest 2.x-4.x, either bundled with Ruby 1.9 - 2.1 or installed via gem
# 3) Minitest > 5.0 bundles with Ruby >= 2.2.2 or installed via gem
# 4) RSpec
-begin
- require 'minitest' # Minitest 5.x
-rescue LoadError
- begin
- require 'minitest/unit' # old Minitest
- rescue LoadError
- begin
- require 'test/unit' # Test::Unit
- rescue LoadError
- # RSpec only
- end
- end
-end
if defined?(Minitest) and Minitest.const_defined?("VERSION") and Minitest::VERSION >= "5.0.0"
ASSERT_VALUE_TEST_FRAMEWORK = :new_minitest
elsif defined?(MiniTest)
ASSERT_VALUE_TEST_FRAMEWORK = :old_minitest