Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support to allow_nil option for delegate_method matcher #798

Conversation

alejandrodevs
Copy link
Contributor

Hi everyone! I would like to add support for allow_nil option to delegate_method matcher.

it { should delegate_method(:deliver).to(:post_office).allow_nil }

I update rspec-rails version in Appraisals file in order to get some new matchers.

'Expected Person to delegate #hello to #country'\
' object allowing nil',
'Method calls sent to Person#country:',
'1) hello()'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put a comma after the last item of a multiline array.

@mcmire
Copy link
Collaborator

mcmire commented Oct 8, 2015

Why did you make a new PR? Just force push to the other PR. (Yes, you can do that 😄)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants