Skip to content

Commit be8112a

Browse files
committed
update spec to event api where it was missing
1 parent 4974e13 commit be8112a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/supports/helpers.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def accept(data)
3333
end
3434

3535
def process_event(event)
36-
event["path"] = path
36+
event.set("path", path)
3737
@queue << event
3838
end
3939

@@ -129,10 +129,10 @@ def logger() @logger ||= MultilineLogTracer.new; end
129129

130130
RSpec::Matchers.define(:match_path_and_line) do |path, line|
131131
match do |actual|
132-
actual["path"] == path && actual["message"] == line.join($/)
132+
actual.get("path") == path && actual.get("message") == line.join($/)
133133
end
134134

135135
failure_message do
136-
"Expecting #{actual['path']} to equal `#{path}` and #{actual["message"]} to equal #{line.join($/)}"
136+
"Expecting #{actual.get('path')} to equal `#{path}` and #{actual.get("message")} to equal #{line.join($/)}"
137137
end
138138
end

0 commit comments

Comments
 (0)