Class: RSpec::Rails::Matchers::BeANew Private

Inherits:
Matchers::BuiltIn::BaseMatcher
  • Object
show all
Defined in:
lib/rspec/rails/matchers/be_a_new.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Matcher class for be_a_new. Should not be instantiated directly.

See Also:

Instance Method Summary (collapse)

Instance Method Details

- (Object) with(expected_attributes)

23
24
25
26
# File 'lib/rspec/rails/matchers/be_a_new.rb', line 23
def with(expected_attributes)
  attributes.merge!(expected_attributes)
  self
end