This repository was archived by the owner on Oct 28, 2020. It is now read-only.
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 90
90
91
91
describe '#analyse' do
92
92
context 'signalize to logger' do
93
- let! ( :logger ) { double ( :logger , warn : true ) }
93
+ let! ( :logger ) { Logger . new ( '/dev/null' ) }
94
94
95
95
subject { described_class . new ( logger : logger , models : [ TestIntModel ] , days_count : 10 ) }
96
96
97
97
context 'empty table' do
98
- it 'doesnt log anything ' do
98
+ it 'doesnt log to warn ' do
99
99
expect ( logger ) . not_to receive ( :warn )
100
100
subject . analyse
101
101
end
116
116
TestIntModel . destroy_all
117
117
end
118
118
119
- it 'doesnt log anything ' do
119
+ it 'doesnt log to warn ' do
120
120
expect ( logger ) . not_to receive ( :warn )
121
121
subject . analyse
122
122
end
170
170
subject { described_class . new ( signalizer : signalizer , models : [ TestIntModel ] , days_count : 10 ) }
171
171
172
172
context 'empty table' do
173
- it 'doesnt log anything ' do
173
+ it 'doesnt log to warn ' do
174
174
expect ( signalizer ) . not_to receive ( :signalize )
175
175
subject . analyse
176
176
end
191
191
TestIntModel . destroy_all
192
192
end
193
193
194
- it 'doesnt log anything ' do
194
+ it 'doesnt log to warn ' do
195
195
expect ( signalizer ) . not_to receive ( :signalize )
196
196
subject . analyse
197
197
end
You can’t perform that action at this time.
0 commit comments