mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Move factories to spec dir and add helper module
This commit is contained in:
parent
e351f12b3f
commit
d9f95f9e97
2 changed files with 26 additions and 1 deletions
23
spec/factory_helper.rb
Normal file
23
spec/factory_helper.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue