diff options
| author | Teddy Wing | 2017-06-19 18:08:28 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-06-19 18:08:28 +0200 |
| commit | 533c1a55df630080cd0ff449e229717ba7ace212 (patch) | |
| tree | dc6771fbed4f54414c4d7cf7b1f55898ab3066cf | |
| parent | 443f281c763670aeee62109cf7bd510f1d88d7c6 (diff) | |
| download | chouette-core-533c1a55df630080cd0ff449e229717ba7ace212.tar.bz2 | |
Revert "factories/workbenches: Add a new `:with_referential` trait"
This reverts commit 073ac0eb3330787532f551d20abe4600a0615446.
I no longer need this factory. Originally added it for a test where I
thought I needed a collection of `Workbench`es. Turns out I instead
needed a collection of `Referential`s. Thus we don't have a need of
creating a workbench with a referential together.
| -rw-r--r-- | spec/factories/workbenches.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/factories/workbenches.rb b/spec/factories/workbenches.rb index 154482213..f51e7d94c 100644 --- a/spec/factories/workbenches.rb +++ b/spec/factories/workbenches.rb @@ -5,24 +5,5 @@ FactoryGirl.define do association :organisation, :factory => :organisation association :line_referential association :stop_area_referential - - trait :with_referential do - # TODO: change all => to : - # association :referential, - # organisation: { organisation } - - # after(:stub) do |workbench, evaluator| - # - # end - - referentials do |workbench| - [association( - :referential, - organisation: workbench.organisation, - line_referential: workbench.line_referential, - stop_area_referential: workbench.stop_area_referential - )] - end - end end end |
