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

JSON Test Data 0.7 breaks tests #20

Open
danascheider opened this issue Apr 25, 2016 · 2 comments
Open

JSON Test Data 0.7 breaks tests #20

danascheider opened this issue Apr 25, 2016 · 2 comments

Comments

@danascheider
Copy link
Owner

JSON Test Data 0.7 is breaking the tests because it generates objects with random values that don't play well with fixtures. Have to figure out a new way to test Rambo that doesn't rely on specific values.

One option, of course, would be to require JSON Test Data <= 0.6.0, but future versions will be much more flexible in he kinds of test data they generate and the amount of JSON schema they can work with.

@danascheider
Copy link
Owner Author

This is addressed for RSpec tests in #27. Cukes are still a work in progress.

@danascheider
Copy link
Owner Author

#27 resolved this for RSpec tests by stubbing out JsonTestData.generate! and returning a predetermined value. However, in the Cucumber suite this is not possible because Aruba spawns a child process in which to run the app, making JsonTestData as well as the rest of the app code unavailable to RSpec Mocks.

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