blob: b8c2c3855044191bec8692b3f953216f89f5ed4a (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
# Assert that this value is a boolean, i.e. true or false
#
# ```
# expect(value).to be_boolean
# ```
RSpec::Matchers.define :be_boolean do
match { |value| value.in? [true, false] }
end
|