blob: 96a71ae3c22fc3e7bbfad4e148aea66b4536cde3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: true
RSpec::Matchers.define :event_type do |event_class|
match do |actual|
actual.instance_of?(event_class) &&
actual.data == @expected_data
end
chain :containing do |expected_data|
@expected_data = expected_data
end
end
|