File tree Expand file tree Collapse file tree
spec/octocatalog-diff/tests/catalog-util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 (
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 )
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' ,
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' ,
You can’t perform that action at this time.
0 commit comments