You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added regex to expect() for debug messages to ensure we are getting the correct messages + moved those expect() lines out of the before(:each) blocks and into it blocks
expect(Utility::Logger).toreceive(:debug).exactly(3).times.with(instance_of(String))# expect three debug messages because three schedules are not being triggered
178
177
end
179
178
180
-
it_behaves_like'does not trigger'
179
+
# functionally the same as shared test 'does not trigger' but with an extra expect() to check for debug messages
180
+
it'does not yield task'do
181
+
# expect three debug messages because three schedules are not being triggered
182
+
expect(Utility::Logger).toreceive(:debug).exactly(3).times.with(match(/^Sync for (\w+.*)|( - \w+) not triggered as .*/))
0 commit comments