Skip to content

Commit 9f00217

Browse files
committed
Use Ruby 2.6 compatible syntax in raise_error_spec.rb
1 parent 2ea3788 commit 9f00217

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

spec/matchers/raise_error_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def result.pretty_inspect
189189
raise "bar"
190190
end
191191

192-
matcher = RaiseErrorMatcher.new(RuntimeError, cause:)
192+
matcher = RaiseErrorMatcher.new(RuntimeError, cause: cause)
193193
expect(matcher.matches?(proc)).to eq(true)
194194
end
195195

@@ -201,7 +201,7 @@ def result.pretty_inspect
201201
raise "bar"
202202
end
203203

204-
matcher = RaiseErrorMatcher.new(RuntimeError, "bar", cause:)
204+
matcher = RaiseErrorMatcher.new(RuntimeError, "bar", cause: cause)
205205
expect(matcher.matches?(proc)).to eq(true)
206206
end
207207

@@ -211,7 +211,7 @@ def result.pretty_inspect
211211
raise "foo"
212212
end
213213

214-
matcher = RaiseErrorMatcher.new(RuntimeError, cause:)
214+
matcher = RaiseErrorMatcher.new(RuntimeError, cause: cause)
215215

216216
begin
217217
matcher.matches?(proc)
@@ -221,7 +221,7 @@ def result.pretty_inspect
221221
)
222222
end
223223

224-
matcher = RaiseErrorMatcher.new(RuntimeError, "foo", cause:)
224+
matcher = RaiseErrorMatcher.new(RuntimeError, "foo", cause: cause)
225225

226226
begin
227227
matcher.matches?(proc)

0 commit comments

Comments
 (0)