Commit aa6c9cac7b5039c6be389cb9e511bdef825c3688

Authored by Nick Recobra
1 parent 3520a42e
Exists in master and in 1 other branch production

Moving factory-girl sequences to factories.rb

spec/factories.rb 0 → 100644
... ... @@ -0,0 +1,4 @@
  1 +Factory.sequence(:name) {|n| "John #{n} Doe"}
  2 +Factory.sequence(:app_name) {|n| "App ##{n}"}
  3 +Factory.sequence(:email) {|n| "email#{n}@example.com"}
  4 +Factory.sequence(:user_email) {|n| "user.#{n}@example.com"}
... ...
spec/factories/app_factories.rb
1   -Factory.sequence(:app_name) {|n| "App ##{n}"}
2   -Factory.sequence(:email) {|n| "email#{n}@example.com"}
3   -
4 1 Factory.define(:app) do |p|
5 2 p.name { Factory.next :app_name }
6 3 end
... ... @@ -27,5 +24,5 @@ Factory.define(:deploy) do |d|
27 24 d.username 'clyde.frog'
28 25 d.repository 'git@github.com/jdpace/errbit.git'
29 26 d.environment 'production'
30   - d.revision '2e601cb575ca97f1a1097f12d0edfae241a70263'
  27 + d.revision ActiveSupport::SecureRandom.hex(10)
31 28 end
32 29 \ No newline at end of file
... ...
spec/factories/user_factories.rb
1   -Factory.sequence(:user_email) {|n| "user.#{n}@example.com"}
2   -
3 1 Factory.define :user do |u|
4 2 u.name 'Clyde Frog'
5 3 u.email { Factory.next :user_email }
... ...