Skip to content

Commit ba0e21c

Browse files
author
Calum Gilchrist
committed
Use the New Style of Logger Spec in Tests
1 parent df5353a commit ba0e21c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/octocatalog-diff/tests/catalog-util/builddir_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
context 'with --create-symlinks' do
8888
context 'with logger' do
8989
it 'should log a warning message and install default symlink' do
90-
logger = double('Logger')
90+
logger, = OctocatalogDiff::Spec.setup_logger
9191
expect(logger).to receive(:warn).with('--create-symlinks is ignored unless --preserve-environments is used')
9292

9393
@described_object.instance_variable_set(
@@ -124,7 +124,7 @@
124124
context 'with --create-symlinks and --environment' do
125125
context 'with logger' do
126126
it 'should log a warning message and install default symlink' do
127-
logger = double('Logger')
127+
logger, = OctocatalogDiff::Spec.setup_logger
128128
expect(logger).to receive(:warn).with(
129129
'--create-symlinks with --environment ignored unless --preserve-environments is used'
130130
)
@@ -164,7 +164,7 @@
164164
context 'with --environment' do
165165
context 'with logger' do
166166
it 'should install a symlink to the given environment' do
167-
logger = double('Logger')
167+
logger, = OctocatalogDiff::Spec.setup_logger
168168

169169
@described_object.instance_variable_set(
170170
'@options',
@@ -199,7 +199,7 @@
199199

200200
context 'without --create-symlinks or --environment' do
201201
it 'should install directory symlink' do
202-
logger = double('Logger')
202+
logger, = OctocatalogDiff::Spec.setup_logger
203203

204204
@described_object.instance_variable_set(
205205
'@options',

0 commit comments

Comments
 (0)