cucumber_factory 1.8.5 → 1.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -106,7 +106,7 @@ module Cucumber
106
106
  end
107
107
 
108
108
  def factory_girl_factory_name(name)
109
- name.to_s.underscore.to_sym
109
+ name.to_s.underscore.gsub('/', '_').to_sym
110
110
  end
111
111
 
112
112
  def create_record(model_class, variant, attributes)
@@ -1,3 +1,3 @@
1
1
  module CucumberFactory
2
- VERSION = '1.8.5'
2
+ VERSION = '1.8.6'
3
3
  end
data/spec/factory_spec.rb CHANGED
@@ -17,4 +17,13 @@ describe Cucumber::Factory do
17
17
 
18
18
  end
19
19
 
20
+ describe 'factory_girl_factory_name' do
21
+
22
+ it "should underscorize everything" do
23
+ subject.send(:factory_girl_factory_name, People::Actor).should == :people_actor
24
+ subject.send(:factory_girl_factory_name, JobOffer).should == :job_offer
25
+ end
26
+
27
+ end
28
+
20
29
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_factory
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 8
9
- - 5
10
- version: 1.8.5
9
+ - 6
10
+ version: 1.8.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-07-26 00:00:00 +02:00
18
+ date: 2013-08-29 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency