RSpec: How to test for a boolean return type? December 18, 2023 by Tarik expect(variable).to be_in([true, false])