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

fix: correct getting attribute value in rspec matcher #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JSinx
Copy link

@JSinx JSinx commented Nov 22, 2018

sometimes @subject[@attribute] return nil instead correct value and we can recieved so message

Failure/Error: it { is_expected.to normalizy(:service_email).from('Email@example.com').to 'email@example.com' }

       expected: "email@example.com"
            got: "email@example.com"

sometimes `@subject[@Attribute]` return `nil` instead correct value and we can recieved so message

```
Failure/Error: it { is_expected.to normalizy(:service_email).from('Email@example.com').to 'email@example.com' }

       expected: "email@example.com"
            got: "email@example.com"
```
@wbotelhos
Copy link
Owner

Thanks for your PR @JSinx !

Can you create a test to expose this problem?

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

Successfully merging this pull request may close these issues.

None yet

2 participants