File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 16
16
describe "enable" do
17
17
describe "feature" do
18
18
it do
19
- expect ( subject ) . to have_attributes ( status : 0 , stdout : /feature.*enabled/ )
19
+ expect ( subject ) . to have_attributes ( status : 0 , stdout : /feature.*\e \[ 32m.* enabled/ )
20
20
expect ( Flipper ) . to be_enabled ( :feature )
21
21
end
22
22
end
23
23
24
24
describe "-a User;1 feature" do
25
25
it do
26
- expect ( subject ) . to have_attributes ( status : 0 , stdout : /feature.*enabled.*User;1/m )
26
+ expect ( subject ) . to have_attributes ( status : 0 , stdout : /feature.*\e \[ 33m.* enabled.*User;1/m )
27
27
expect ( Flipper ) . to be_enabled ( :feature , Flipper ::Actor . new ( "User;1" ) )
28
28
end
29
29
end
@@ -172,6 +172,9 @@ def run(argv)
172
172
$stderr = StringIO . new
173
173
status = 0
174
174
175
+ # Prentend this a TTY so we can test colorization
176
+ allow ( $stdout) . to receive ( :tty? ) . and_return ( true )
177
+
175
178
begin
176
179
Flipper ::CLI . run ( argv )
177
180
rescue SystemExit => e
You can’t perform that action at this time.
0 commit comments