assert_same 0.6 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/assert_same.gemspec +1 -1
- data/lib/assert_same.rb +2 -2
- metadata +1 -1
data/assert_same.gemspec
CHANGED
data/lib/assert_same.rb
CHANGED
@@ -204,9 +204,9 @@ module Test::Unit::Assertions
|
|
204
204
|
|
205
205
|
# interactive mode is turned on by default, except when
|
206
206
|
# - --no-interactive is given
|
207
|
-
# -
|
207
|
+
# - CIRCLECI is set (CircleCI captures test output, but doesn't interact with user)
|
208
208
|
# - STDIN is not a terminal device (i.e. we can't ask any questions)
|
209
|
-
interactive = !$assert_same_options.include?("--no-interactive") && !ENV["
|
209
|
+
interactive = !$assert_same_options.include?("--no-interactive") && !ENV["CIRCLECI"] && STDIN.tty?
|
210
210
|
canonicalize = !$assert_same_options.include?("--no-canonicalize")
|
211
211
|
autoaccept = $assert_same_options.include?("--autoaccept")
|
212
212
|
|