spec/spec_helper.rb in virtus-0.5.2 vs spec/spec_helper.rb in virtus-0.5.3
- old
+ new
@@ -1,16 +1,15 @@
-begin
- require 'rspec' # try for RSpec 2
-rescue LoadError
- require 'spec' # try for RSpec 1
- RSpec = Spec::Runner
-end
-
+require 'rspec'
require 'virtus'
ENV['TZ'] = 'UTC'
+if ENV['COVERAGE']
+ require 'simplecov'
+ SimpleCov.start
+end
+
# require spec support files and shared behavior
Dir[File.expand_path('../shared/**/*.rb', __FILE__)].each { |file| require file }
RSpec.configure do |config|
@@ -32,13 +31,6 @@
ConstantsHelpers.undef_constant(Examples, const_name)
end
end
end
-end
-
-# change the heckle timeout to be 5 seconds
-if defined?(::Heckle)
- class ::Heckle
- @@timeout = 5
- end
end