assert_same 0.6 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
|