StrSubject

StrSubject.new

StrSubject.new(actual, meta)

Creates a subject for asserting strings.

Method: StrSubject.new

PARAMETERS

actual:

(str) the string to check against.

meta:

(ExpectMeta) of call chain information.

RETURNS

StrSubject object.

StrSubject.contains

StrSubject.contains(substr)

Assert that the subject contains the substring substr.

Method: StrSubject.contains

PARAMETERS

substr:

(str) the substring to check for.

StrSubject.equals

StrSubject.equals(other)

Assert that the subject string equals the other string.

Method: StrSubject.equals

PARAMETERS

other:

(str) the expected value it should equal.

StrSubject.not_equals

StrSubject.not_equals(unexpected)

Assert that the string is not equal to unexpected.

Method: BoolSubject.not_equals

PARAMETERS

unexpected:

(str) the value actual cannot equal.

StrSubject.split

StrSubject.split(sep)

Return a CollectionSubject for the actual string split by sep.

Method: StrSubject.split

PARAMETERS

sep:

undocumented