Module: RspecHelpers::Expectations

Defined in:
foobara-spec-helpers-0.0.4/lib/foobara/spec_helpers/expectations.rb

Instance Method Summary collapse

Instance Method Details

#is_expected_to(expectation) ⇒ Object



11
12
13
# File 'foobara-spec-helpers-0.0.4/lib/foobara/spec_helpers/expectations.rb', line 11

def is_expected_to(expectation)
  expect { subject }.to expectation
end

#is_expected_to_not(expectation) ⇒ Object



15
16
17
# File 'foobara-spec-helpers-0.0.4/lib/foobara/spec_helpers/expectations.rb', line 15

def is_expected_to_not(expectation)
  expect { subject }.to_not expectation
end

#is_expected_to_not_raiseObject



7
8
9
# File 'foobara-spec-helpers-0.0.4/lib/foobara/spec_helpers/expectations.rb', line 7

def is_expected_to_not_raise(*, &)
  is_expected_to_not raise_error(*, &)
end

#is_expected_to_raiseObject



3
4
5
# File 'foobara-spec-helpers-0.0.4/lib/foobara/spec_helpers/expectations.rb', line 3

def is_expected_to_raise(*, &)
  is_expected_to raise_error(*, &)
end