diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-09 00:36:38 +0300 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-09 00:36:38 +0300 |
commit | 9ba1224867665844b117fa037e1465bb706b3685 (patch) | |
tree | 52fbfc1cdb55df21843965479c97be0c91121a9a /db/fixtures | |
parent | 93efff945215a4407afcaf0cba15ac601b56df0d (diff) | |
download | gitlab-ce-9ba1224867665844b117fa037e1465bb706b3685.tar.gz |
init commit
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/001_admin.rb | 10 | ||||
-rw-r--r-- | db/fixtures/production/001_admin.rb | 9 | ||||
-rw-r--r-- | db/fixtures/test/001_repo.rb | 8 |
3 files changed, 27 insertions, 0 deletions
diff --git a/db/fixtures/development/001_admin.rb b/db/fixtures/development/001_admin.rb new file mode 100644 index 00000000000..5020eccbca4 --- /dev/null +++ b/db/fixtures/development/001_admin.rb @@ -0,0 +1,10 @@ +# Admin account +admin = User.create( + :email => "admin@local.host", + :name => "Administrator", + :password => "5iveL!fe", + :password_confirmation => "5iveL!fe" +) + +admin.admin = true +admin.save! diff --git a/db/fixtures/production/001_admin.rb b/db/fixtures/production/001_admin.rb new file mode 100644 index 00000000000..a50a693632b --- /dev/null +++ b/db/fixtures/production/001_admin.rb @@ -0,0 +1,9 @@ +admin = User.create( + :email => "admin@local.host", + :name => "Administrator", + :password => "5iveL!fe", + :password_confirmation => "5iveL!fe" +) + +admin.admin = true +admin.save! diff --git a/db/fixtures/test/001_repo.rb b/db/fixtures/test/001_repo.rb new file mode 100644 index 00000000000..034596f1cbf --- /dev/null +++ b/db/fixtures/test/001_repo.rb @@ -0,0 +1,8 @@ +# Clone repo +`cp spec/seed_project.tar.gz /tmp/` +Dir.chdir("/tmp") +`tar -xf seed_project.tar.gz` +3.times do |i| +`cp -r /tmp/legit/ /tmp/legit_#{i}/` +puts "Unpacked seed repo - /tmp/legit_#{i}" +end |