Class: RSpec::Rails::Matchers::BeANew Private
- Inherits:
-
BaseMatcher
- Object
- 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.
Constant Summary
Constants inherited from BaseMatcher
RSpec::Rails::Matchers::BaseMatcher::UNDEFINED
Instance Method Summary collapse
Methods inherited from BaseMatcher
#description, #diffable?, #expects_call_stack_jump?, #match_unless_raises, #supports_block_expectations?
Methods included from RSpec::Rails::Matchers::BaseMatcher::DefaultFailureMessages
Instance Method Details
#with(expected_attributes) ⇒ Object
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 |