factor-connector-api 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/factor-connector-api/test.rb +7 -1
- metadata +1 -1
@@ -44,7 +44,13 @@ module Factor::Connector
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
|
47
|
+
last_log = if @logs.last[:type]=='log' && @logs.last[:status]=='debug'
|
48
|
+
@logs.select {|log| log[:type] == 'log' && log[:status]=='debug'}.first
|
49
|
+
else
|
50
|
+
@logs.last
|
51
|
+
end
|
52
|
+
|
53
|
+
raise "No match found for #{expected_hash}. Last line was #{last_log}" unless found
|
48
54
|
match if found
|
49
55
|
end
|
50
56
|
|