diff options
| author | Teddy Wing | 2017-09-25 17:30:23 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-09-25 17:30:23 +0200 |
| commit | cfd4b8a553af99fd4571172183fa11e59f7e6e35 (patch) | |
| tree | a375f4d41f18c7ae610a21497b14206de66b4f49 /script | |
| parent | 72806a4961e4240cff955c66fff1840e40301b89 (diff) | |
| download | chouette-core-cfd4b8a553af99fd4571172183fa11e59f7e6e35.tar.bz2 | |
Workbench: Ensure `output` attr is initialised when creating workbench
Since all `Workbench`es must have an associated `ReferentialSuite` via
`output`, if none is provided when creating a new `Workbench`, create
one automatically.
This is done in a `before_validation` callback (eck, AR callbacks).
In order for our prior 'should validate_presence_of' test to continue to
work, we have to work around the new callback, otherwise Shoulda can't
set `output` to `nil` to run its expectation and the test fails.
Refs #3520
Diffstat (limited to 'script')
0 files changed, 0 insertions, 0 deletions
