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

refactor ordered_hash_spec #566

Merged
merged 1 commit into from
Jun 20, 2017
Merged

refactor ordered_hash_spec #566

merged 1 commit into from
Jun 20, 2017

Conversation

colby-swandale
Copy link

This PR refactors the ordered_hash_spec to keep with convention of the rest of the suite and added a few new specs.

There was a few issues i felt need addressing in this spec.

  • wrap the described behaviour in describe blocks with the method name that is being tested.
  • Don't use an instance variable as the test subject and don't depend on the state of the subject from previous specs

Thanks

@rafaelfranca rafaelfranca merged commit 4f83b3f into rails:master Jun 20, 2017
@rafaelfranca
Copy link
Member

Awesome refactoring

@colby-swandale colby-swandale deleted the refactor-ordered-hash-spec branch June 20, 2017 21:45
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.

2 participants