Welcome to mirror list, hosted at ThFree Co, Russian Federation.

be_boolean.rb « matchers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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