Class: OSpec::BeTrueMatcher

Inherits:
Matcher show all
Defined in:
lib/ospec/matchers.rb

Instance Method Summary collapse

Methods inherited from Matcher

#failure, #initialize

Constructor Details

This class inherits a constructor from OSpec::Matcher

Instance Method Details

#match(expected) ⇒ Object



47
48
49
50
51
# File 'lib/ospec/matchers.rb', line 47

def match expected
  unless expected == true
    failure "expected #{expected.inspect} to be true."
  end
end