lookout 2.1.4 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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