diff options
| author | Teddy Wing | 2017-07-24 12:19:42 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-08-01 19:04:37 +0200 |
| commit | 0603bc1f91ebfc9b2a3992e72598566e4203c2cb (patch) | |
| tree | 11aa9872efb124c0b0cc0c78528b820785453691 | |
| parent | 265f76bfb55b79c550c264d5bb10319f6b77ede3 (diff) | |
| download | chouette-core-0603bc1f91ebfc9b2a3992e72598566e4203c2cb.tar.bz2 | |
Move `netex_import` factory to its own file
I briefly forgot that the `NetexImport` factory lived in the
"imports.rb" factory file. Move it to its own file to make it easier to
find.
Refs #3511
| -rw-r--r-- | spec/factories/imports.rb | 3 | ||||
| -rw-r--r-- | spec/factories/netex_imports.rb | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/spec/factories/imports.rb b/spec/factories/imports.rb index aa9288fe9..aaf56914f 100644 --- a/spec/factories/imports.rb +++ b/spec/factories/imports.rb @@ -10,9 +10,6 @@ FactoryGirl.define do started_at nil ended_at nil - factory :netex_import, class: NetexImport do - file {File.open(Rails.root.join('spec', 'fixtures', 'terminated_job.json'))} - end factory :workbench_import, class: WorkbenchImport do file {File.open(Rails.root.join('spec', 'fixtures', 'terminated_job.json'))} end diff --git a/spec/factories/netex_imports.rb b/spec/factories/netex_imports.rb new file mode 100644 index 000000000..057e47730 --- /dev/null +++ b/spec/factories/netex_imports.rb @@ -0,0 +1,5 @@ +FactoryGirl.define do + factory :netex_import, class: NetexImport, parent: :import do + file { File.open(Rails.root.join('spec', 'fixtures', 'terminated_job.json')) } + end +end |
