assert_same 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/assert_same.gemspec +1 -1
  2. data/lib/assert_same.rb +2 -1
  3. metadata +2 -2
data/assert_same.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  SPEC = Gem::Specification.new do |s|
4
4
  s.name = "assert_same"
5
- s.version = "0.5"
5
+ s.version = "0.6"
6
6
  s.author = "Pluron, Inc."
7
7
  s.email = "support@pluron.com"
8
8
  s.homepage = "http://github.com/acunote/assert_same"
data/lib/assert_same.rb CHANGED
@@ -204,8 +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
+ # - CIRCLE_CI is set (CircleCI captures test output, but doesn't interact with user)
207
208
  # - STDIN is not a terminal device (i.e. we can't ask any questions)
208
- interactive = !$assert_same_options.include?("--no-interactive") && STDIN.tty?
209
+ interactive = !$assert_same_options.include?("--no-interactive") && !ENV["CIRCLE_CI"] && STDIN.tty?
209
210
  canonicalize = !$assert_same_options.include?("--no-canonicalize")
210
211
  autoaccept = $assert_same_options.include?("--autoaccept")
211
212
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assert_same
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-07 00:00:00.000000000 Z
12
+ date: 2013-09-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: assert_same assertion
15
15
  email: support@pluron.com