Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelherold/test-mutations
Some demo mutations for the mutations gem that illustrate a bug
https://github.com/michaelherold/test-mutations
Last synced: 7 days ago
JSON representation
Some demo mutations for the mutations gem that illustrate a bug
- Host: GitHub
- URL: https://github.com/michaelherold/test-mutations
- Owner: michaelherold
- Created: 2014-07-21T03:40:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-21T03:47:02.000Z (over 10 years ago)
- Last Synced: 2024-10-09T23:11:07.518Z (28 days ago)
- Language: Ruby
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Sample Mutations Illustrating a Bug
The casting to ``HashWithIndifferentAccess`` in
``mutations/hash_filter`` is causing issues with passing an
``OmniAuth::AuthHash`` to a command as a model.## Steps to Reproduce
1. Check out this repository
```sh
git clone https://github.com/michaelherold/test-mutations.git
```2. Run ``bundler install``
3. Run ``bundle exec rspec``
## Expected Result
All tests should pass.
## Actual Result
Only the generic success test passes, but the others do not.
## Diagnosis
The ``OmniAuth::AuthHash`` that is passed to the specific command is
cast to a ``HashWithIndifferentAccess`` as a byproduct of using that
type of hash.This hash should remain an ``OmniAuth::AuthHash`` to match the
expected model type.