diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-08-04 03:11:56 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-08-04 03:12:38 -0700 |
commit | a23689a6aa738f5dd051d65b9e26e5d6bb7fa332 (patch) | |
tree | 2df45a2523c52c0717c39d47779a98f53d8c59d3 /spec/factories | |
parent | 1c186d26d0b1a3dfa9784908c5a8bd5d1fc1e415 (diff) | |
download | refinerycms-blog-a23689a6aa738f5dd051d65b9e26e5d6bb7fa332.tar.gz refinerycms-blog-a23689a6aa738f5dd051d65b9e26e5d6bb7fa332.tar.bz2 refinerycms-blog-a23689a6aa738f5dd051d65b9e26e5d6bb7fa332.zip |
Remove shared functionality that now exists in refinerycms-testing engine
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/user.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/spec/factories/user.rb b/spec/factories/user.rb deleted file mode 100644 index 94fe1d0..0000000 --- a/spec/factories/user.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'refinerycms/all' -require 'refinery/role' - -Factory.define :user, :class => ::Refinery::User do |u| - u.sequence(:username) { |n| "person#{n}" } - u.sequence(:email) { |n| "person#{n}@cucumber.com" } - u.password "greenandjuicy" - u.password_confirmation "greenandjuicy" -end - -Factory.define :refinery_user, :parent => :user do |u| - u.roles { [ ::Refinery::Role[:refinery] ] } - - u.after_create do |user| - ::Refinery::Plugins.registered.each_with_index do |plugin, index| - user.plugins.create(:name => plugin.name, :position => index) - end - end -end - -Factory.define :refinery_translator, :parent => :user do |u| - u.roles { [ ::Refinery::Role[:refinery], ::Refinery::Role[:translator] ] } - - u.after_create do |user| - user.plugins.create(:name => 'refinery_pages', :position => 0) - end -end |