File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spec/octocatalog-diff/tests/catalog-util Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 87
87
context 'with --create-symlinks' do
88
88
context 'with logger' do
89
89
it 'should log a warning message and install default symlink' do
90
- logger = double ( 'Logger' )
90
+ logger , = OctocatalogDiff :: Spec . setup_logger
91
91
expect ( logger ) . to receive ( :warn ) . with ( '--create-symlinks is ignored unless --preserve-environments is used' )
92
92
93
93
@described_object . instance_variable_set (
124
124
context 'with --create-symlinks and --environment' do
125
125
context 'with logger' do
126
126
it 'should log a warning message and install default symlink' do
127
- logger = double ( 'Logger' )
127
+ logger , = OctocatalogDiff :: Spec . setup_logger
128
128
expect ( logger ) . to receive ( :warn ) . with (
129
129
'--create-symlinks with --environment ignored unless --preserve-environments is used'
130
130
)
164
164
context 'with --environment' do
165
165
context 'with logger' do
166
166
it 'should install a symlink to the given environment' do
167
- logger = double ( 'Logger' )
167
+ logger , = OctocatalogDiff :: Spec . setup_logger
168
168
169
169
@described_object . instance_variable_set (
170
170
'@options' ,
199
199
200
200
context 'without --create-symlinks or --environment' do
201
201
it 'should install directory symlink' do
202
- logger = double ( 'Logger' )
202
+ logger , = OctocatalogDiff :: Spec . setup_logger
203
203
204
204
@described_object . instance_variable_set (
205
205
'@options' ,
You can’t perform that action at this time.
0 commit comments