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

Disable conversion of have(n).errors_on(:attr) #62

Closed
yujinakayama opened this issue May 21, 2014 · 0 comments
Closed

Disable conversion of have(n).errors_on(:attr) #62

yujinakayama opened this issue May 21, 2014 · 0 comments

Comments

@yujinakayama
Copy link
Owner

rspec/rspec-rails#1026

Technically it can be converted to:

model.valid?
expect(model.errors[:attr].size).to eq(1)

However probably this is not what most users want. So Transpec should leave them and suggest using rspec-collection_matchers gem.

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

No branches or pull requests

1 participant