Skip to content

Commit

Permalink
Fix RSpec deprecation warnings for custom block
Browse files Browse the repository at this point in the history
Custom matchers which take a block must implement
`supports_block_expectations?` else they will generate a deprecation
warining w/RSpec >= 2.99
  • Loading branch information
stevenharman committed May 21, 2014
1 parent 5be8bf0 commit 268402a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/support/matchers/exit_code_matchers.rb
Expand Up @@ -29,5 +29,9 @@ def successful_exit_code
0
end

def supports_block_expectations?
true
end

end

0 comments on commit 268402a

Please sign in to comment.