Move factories to spec dir and add helper module

This commit is contained in:
Lars Henrik Mai 2016-02-19 08:39:30 +01:00
parent e351f12b3f
commit d9f95f9e97
2 changed files with 26 additions and 1 deletions

23
spec/factory_helper.rb Normal file
View file

@ -0,0 +1,23 @@
module FactoryHelper
PAPER_TYPES = [
"Verwaltungsstandpunkt",
"Anfrage",
"Beschlussvorlage",
"Änderungsantrag",
"Antrag",
"Neufassung",
"Informationsvorlage",
"Einwohneranfrage",
"Petition",
"schriftliche Antwort zur Anfrage",
"Wichtige Angelegenheit",
"Eilentscheidung",
"Dringliche Anfrage"
]
def self.paper_type
PAPER_TYPES.sample
end
end