Skip to content

fix: correct getting attribute value in rspec matcher#1

Open
JSinx wants to merge 1 commit intowbotelhos:masterfrom
JSinx:fix_attribute_getter
Open

fix: correct getting attribute value in rspec matcher#1
JSinx wants to merge 1 commit intowbotelhos:masterfrom
JSinx:fix_attribute_getter

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 wbotelhos force-pushed the master branch 2 times, most recently from 501fe0e to 057d213 Compare March 19, 2022 02:11
@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.

2 participants