test_bench 1.0.0.0 → 1.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0359bdc17397c6a467d757d2c50851ebe475625536e04ebbb2e65b1bb804d3fd'
4
- data.tar.gz: 4db8e6a9084c79383349d9eaafd9b88911316174654ce0c26a91e68fff2e6868
3
+ metadata.gz: '08a857025639ac3bcb5ea0ecb42eb23595178ee58d4a66978928b1b2da78ecfb'
4
+ data.tar.gz: 1ff0bb27651ac0e4d610739e5ac166c88f506eef2c207b5a054dcb94a5c50ee9
5
5
  SHA512:
6
- metadata.gz: 2fb8769efb25591f4eb2bbc1c3b1c0a5b185bb5a3853c224ca8998467564023196a0142413f4380d19d9dd26ecd6e5fd93d91f74034a3852dd567b527277266c
7
- data.tar.gz: 48252b7032528645d743e4a1f52faaf95f61763c17c6ad4078d1f208610f529a2acff4318f5446efb140df63a9323df3d08b0fdd7c5e56f0824db7af8bcc46cd
6
+ metadata.gz: f735070a18498f598378e84777e89ca0f867b912fa6e6eb635bd0f8205e8627c63f2971e016a7a38f09e7d2817902f9495c06a81c37a4b70ad0a5b80dee9d099
7
+ data.tar.gz: ed26175bdd5e73c5c9eafdaf903fd86ee9fd1b52f116d4593caa110a61e6e9cd5e492711003e41813c017be090b29a62bbe8180c280f27e78b84c3aaa45cf2a5
@@ -95,12 +95,18 @@ module TestBench
95
95
  end
96
96
 
97
97
  def skip_test(title)
98
+ title ||= 'Test'
99
+
98
100
  writer.indent
99
101
 
100
- writer
101
- .escape_code(:yellow)
102
- .text(title || 'Test')
103
- .escape_code(:reset_fg)
102
+ if writer.styling?
103
+ writer
104
+ .escape_code(:yellow)
105
+ .text(title)
106
+ .escape_code(:reset_fg)
107
+ else
108
+ writer.text("#{title} (skipped)")
109
+ end
104
110
 
105
111
  writer.newline
106
112
  end
@@ -139,12 +145,18 @@ module TestBench
139
145
  def skip_context(title)
140
146
  return if title.nil?
141
147
 
142
- writer
143
- .indent
144
- .escape_code(:yellow)
145
- .text(title)
146
- .escape_code(:reset_fg)
147
- .newline
148
+ writer.indent
149
+
150
+ if writer.styling?
151
+ writer
152
+ .escape_code(:yellow)
153
+ .text(title)
154
+ .escape_code(:reset_fg)
155
+ else
156
+ writer.text("#{title} (skipped)")
157
+ end
158
+
159
+ writer.newline
148
160
 
149
161
  writer.newline if writer.indentation_depth.zero?
150
162
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.0
4
+ version: 1.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
8
8
  autorequire:
9
9
  bindir: script
10
10
  cert_chain: []
11
- date: 2020-06-09 00:00:00.000000000 Z
11
+ date: 2020-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test_bench-fixture