Commit aa6c9cac7b5039c6be389cb9e511bdef825c3688
1 parent
3520a42e
Exists in
master
and in
1 other branch
Moving factory-girl sequences to factories.rb
Showing
3 changed files
with
5 additions
and
6 deletions
Show diff stats
spec/factories/app_factories.rb
1 | -Factory.sequence(:app_name) {|n| "App ##{n}"} | ||
2 | -Factory.sequence(:email) {|n| "email#{n}@example.com"} | ||
3 | - | ||
4 | Factory.define(:app) do |p| | 1 | Factory.define(:app) do |p| |
5 | p.name { Factory.next :app_name } | 2 | p.name { Factory.next :app_name } |
6 | end | 3 | end |
@@ -27,5 +24,5 @@ Factory.define(:deploy) do |d| | @@ -27,5 +24,5 @@ Factory.define(:deploy) do |d| | ||
27 | d.username 'clyde.frog' | 24 | d.username 'clyde.frog' |
28 | d.repository 'git@github.com/jdpace/errbit.git' | 25 | d.repository 'git@github.com/jdpace/errbit.git' |
29 | d.environment 'production' | 26 | d.environment 'production' |
30 | - d.revision '2e601cb575ca97f1a1097f12d0edfae241a70263' | 27 | + d.revision ActiveSupport::SecureRandom.hex(10) |
31 | end | 28 | end |
32 | \ No newline at end of file | 29 | \ No newline at end of file |
spec/factories/user_factories.rb