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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 757ac30270b0e40c39e04e69d6319476329b0429
4
- data.tar.gz: d78da6063c640d5e2e95dbc3bbdebbc8ae125c3b
3
+ metadata.gz: 1208d872617aed54c134321a49593e0dbebe91ed
4
+ data.tar.gz: f01da984408c243b7dca1b9132649dc25b9466e8
5
5
  SHA512:
6
- metadata.gz: a5309a9b65b89df37196b44a52e32bf19e9ce17ad9006cafea8c4a3e5b581be6e33358da91be734f7694c09f42b7d51c41dc2cad0feaa388d3ed1ad1c5075429
7
- data.tar.gz: 7e33f8bbe49c4f1850ef7af4619ccf0d61ad13591986660265304bfb35cf2afd6efc70c7063dd3f089c0a0570c42f4be65f7d720fdfd0b532a6ba2719894e3cd
6
+ metadata.gz: 075b6366d4fa10a07bee9c78428cbe019ea1a5eaeb3fe192ffe6c7400b77f9b99b5b76e2e476f68b47593a72b377ec751bbe27f63c120b7139f008c8b2cecae3
7
+ data.tar.gz: de4e3197ec3463590872862b52047a41a4423c241a3972af431689d5b9ed3cc4a23344a29f9a49ad60f797998fdb20fd5561c448186f404b40bd71d61f9609cc
@@ -1,3 +1,3 @@
1
1
  module MorseSpecHelpers
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -1,12 +1,6 @@
1
1
  def setup_factories
2
- #Commenting out the dynamic bit, as it's too slow
3
- #filenames=Dir.new("#{Rails.root}/app/models").entries.select{|e| e.match(/.rb$/)}
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S