spec/support/spec_helper.rb in time_distribution-1.0.0 vs spec/support/spec_helper.rb in time_distribution-1.1.0
- old
+ new
@@ -1,31 +1,33 @@
require 'simplecov'
SimpleCov.start
require 'minitest/spec'
-require 'minitest/pride'
require 'minitest/mock'
-require 'turn'
-Turn.config do |c|
- # use one of output formats:
- # :outline - turn's original case/test outline mode [default]
- # :progress - indicates progress with progress bar
- # :dotted - test/unit's traditional dot-progress mode
- # :pretty - new pretty reporter
- # :marshal - dump output as YAML (normal run mode only)
- # :cue - interactive testing
- c.format = :dotted
- # use humanized test names (works only with :outline format)
- c.natural = true
-end
+begin
+ require 'turn/autorun'
+ Turn.config do |c|
+ # use one of output formats:
+ # :outline - turn's original case/test outline mode [default]
+ # :progress - indicates progress with progress bar
+ # :dotted - test/unit's traditional dot-progress mode
+ # :pretty - new pretty reporter
+ # :marshal - dump output as YAML (normal run mode only)
+ # :cue - interactive testing
+ c.format = :dotted
+ # use humanized test names (works only with :outline format)
+ c.natural = true
+ end
-require 'awesome_print'
-module Minitest::Assertions
- def mu_pp(obj)
- obj.awesome_inspect
+ require 'awesome_print'
+ module Minitest::Assertions
+ def mu_pp(obj)
+ obj.awesome_inspect
+ end
end
-end
-require 'pry-rescue/minitest'
+ require 'pry-rescue/minitest'
+rescue LoadError
+end
require 'ruby-duration'
\ No newline at end of file