W3cubDocs

/Crystal 0.31

module Spec::ObjectExtensions

Direct including types

Defined in:

spec/expectations.cr

Instance Method Summary

Instance Method Detail

def should(expectation, file = __FILE__, line = __LINE__)Source

Validates an expectation and fails the example if it does not match.

See Spec::Expecations for available expectations.

def should_not(expectation, file = __FILE__, line = __LINE__)Source

Validates an expectation and fails the example if it matches.

See Spec::Expecations for available expectations.

© 2012–2019 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.31.1/Spec/ObjectExtensions.html