-
-
Save Kroid/ee6e509bd91acaa1907b78fc56b2147d to your computer and use it in GitHub Desktop.
Revisions
-
koriroys created this gist
May 13, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ require 'rspec/expectations' RSpec::Matchers.define :be_boolean do match do |actual| [true, false].include? actual end failure_message_for_should do |actual| "expected that #{actual.inspect} would be a boolean(true or false)" end failure_message_for_should do |actual| "expected that #{actual.inspect} would be not be a boolean(true or false)" end description do "be a boolean(true or false)" end end