Class: RSpec::Rails::Matchers::BeANew Private
- Inherits:
-
Matchers::BuiltIn::BaseMatcher
- Object
- Matchers::BuiltIn::BaseMatcher
- RSpec::Rails::Matchers::BeANew
- 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.
Instance Method Summary collapse
Instance Method Details
#with(expected_attributes) ⇒ Object
21 22 23 24 |
# File 'lib/rspec/rails/matchers/be_a_new.rb', line 21 def with(expected_attributes) attributes.merge!(expected_attributes) self end |