lookout 2.1.4 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- module Lookout::Results::Instance
4
- def initialize
5
- @listeners = []
6
- end
7
-
8
- def on_new(&block)
9
- @listeners << block
10
- end
11
-
12
- def <<(result)
13
- @listeners.each do |listener|
14
- listener.call result
15
- end
16
- end
17
- end
@@ -1,10 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- Expectations do
4
- expect [%r{test.*backtrace\.rb}] do
5
- results = Lookout::Results::Unsuccessful.new
6
- Lookout::Expectations.new(results).expect(1){ raise }
7
- Lookout::Results::Error::Exception::Backtrace.
8
- new(results.first.exception.exception.backtrace, true).backtrace
9
- end
10
- end