morse_spec_helpers 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/morse_spec_helpers/version.rb +1 -1
- data/lib/support/project_helpers.rb +2 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1208d872617aed54c134321a49593e0dbebe91ed
|
4
|
+
data.tar.gz: f01da984408c243b7dca1b9132649dc25b9466e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 075b6366d4fa10a07bee9c78428cbe019ea1a5eaeb3fe192ffe6c7400b77f9b99b5b76e2e476f68b47593a72b377ec751bbe27f63c120b7139f008c8b2cecae3
|
7
|
+
data.tar.gz: de4e3197ec3463590872862b52047a41a4423c241a3972af431689d5b9ed3cc4a23344a29f9a49ad60f797998fdb20fd5561c448186f404b40bd71d61f9609cc
|
@@ -1,12 +1,6 @@
|
|
1
1
|
def setup_factories
|
2
|
-
#
|
3
|
-
|
4
|
-
#modelnames=filenames.map{|fn| fn.gsub(/.rb$/,'').camelize.constantize}
|
5
|
-
modelnames=[
|
6
|
-
Offer,
|
7
|
-
Postcode,
|
8
|
-
Search
|
9
|
-
]
|
2
|
+
filenames=Dir.new("#{Rails.root}/app/models").entries.select{|e| e.match(/.rb$/)}
|
3
|
+
modelnames=filenames.map{|fn| fn.gsub(/.rb$/,'').camelize.constantize}
|
10
4
|
modelnames.each do |thing|
|
11
5
|
string=thing.to_s.underscore
|
12
6
|
symbol=string.to_sym
|