diff --git a/lib/pact_broker/string_refinements.rb b/lib/pact_broker/string_refinements.rb index 2c389e248..0321006d0 100644 --- a/lib/pact_broker/string_refinements.rb +++ b/lib/pact_broker/string_refinements.rb @@ -1,5 +1,25 @@ module PactBroker module StringRefinements + refine TrueClass do + def blank? + false + end + + def present? + true + end + end + + refine FalseClass do + def blank? + false + end + + def present? + true + end + end + refine NilClass do def blank? true