test/helper.rb in assert-1.1.0 vs test/helper.rb in assert-2.0.0.rc.1
- old
+ new
@@ -25,11 +25,13 @@
# force tests to run without halting on fail (needed for tests to run)
# anywhere we test halt on fail behavior, we take care of it in the specific context
class Assert::Context
def setup
- ENV['halt_on_fail'] = 'false'
- Assert::Test.options.halt_on_fail false
+ Assert.config.halt_on_fail false
+ # Note: don't mess with `Assert.config.output` in this setup block - it will
+ # break the capture output tests. If you really need to set it one way or
+ # another, do it in the `.assert.rb` local settings file.
end
end
module Factory
class << self