rambo icon indicating copy to clipboard operation
rambo copied to clipboard

JSON Test Data 0.7 breaks tests

Open oscaralanpierce opened this issue 9 years ago • 2 comments

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.

oscaralanpierce avatar Apr 25 '16 23:04 oscaralanpierce

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

oscaralanpierce avatar May 18 '16 19:05 oscaralanpierce

#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.

oscaralanpierce avatar May 18 '16 20:05 oscaralanpierce