Merge branch 'master' into 96-upgrade_rails

This commit is contained in:
Pavel Chipiga 2012-02-14 14:05:27 +02:00
commit 02478f5451
7 changed files with 13 additions and 11 deletions

View File

@ -1 +1 @@
require './lib/gollum'
require './lib/gollum1'

View File

@ -1,3 +1,3 @@
# -*- encoding : utf-8 -*-
require './lib/grit'
require './lib/grit1'

View File

@ -90,12 +90,12 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
end
create_table "comments", :force => true do |t|
t.string "commentable_id"
t.string "commentable_type"
t.integer "user_id"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
t.decimal "commentable_id", :precision => 50, :scale => 0
end
create_table "containers", :force => true do |t|
@ -117,7 +117,6 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
t.string "locked_by"
t.datetime "created_at"
t.datetime "updated_at"
t.string "queue"
end
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
@ -339,6 +338,7 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
t.string "email", :default => "", :null => false
t.string "encrypted_password", :limit => 128, :default => "", :null => false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.datetime "created_at"
t.datetime "updated_at"
@ -346,7 +346,6 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
t.string "uname"
t.string "role"
t.string "language", :default => "en"
t.datetime "reset_password_sent_at"
t.integer "own_projects_count", :default => 0, :null => false
end

View File

@ -69,7 +69,7 @@ describe CollaboratorsController do
@user.relations
set_session_for(@user)
@group = Factory(:group)
@project.relations.create!(:object_type => 'User', :object_id => @user.id, :role => 'reader')
@project.relations.create!(:object_type => 'User', :object_id => @user.id, :role => 'admin')
end
it_should_behave_like 'project admin user'

View File

@ -2,9 +2,12 @@
FactoryGirl.define do
factory :register_request do
name "MyString"
email "MyString"
token "MyString"
approved false
end
name "MyString"
email { Factory.next(:email) }
token "MyString"
interest "MyString"
more "MyText"
approved false
rejected false
end
end