Welcome to rspec_boolean, with this gem you can use "be_boolean" expectation to your tests
Add this line to your application's Gemfile in the group :development, :test:
gem 'rspec_boolean'
And then execute:
$ bundle
expect(false).to be_boolean
Fork the repo, send bug reports and pull requests on GitHub at https://github.com/compersionapps/rspec_boolean.