Sha256: fb68e1bb564bba23e6d6d8e54f20b011a4a204fed912ead032199f17b3649ebc
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 Bytes
Contents
module Zen Zen::RakeTask = true end require File.expand_path('../helper', __FILE__) import __DIR__('../lib/zen/task/db.rake') import __DIR__('../lib/zen/task/package.rake') namespace :db do desc 'Creates the user for all the tests' task :test_user do # Create a default user and group group = Users::Model::UserGroup.create( :name => 'Administrators', :slug => 'administrators', :super_group => true ) user = Users::Model::User.create( :email => 'spec@domain.tld', :name => 'Spec', :password => 'spec' ) user.activate! user.user_group_pks = [group.id] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zen-0.3 | spec/Rakefile |
zen-0.3b1 | spec/Rakefile |
zen-0.3b | spec/Rakefile |