Merge branch 'master' into 96-upgrade_rails
This commit is contained in:
commit
02478f5451
|
@ -1 +1 @@
|
||||||
require './lib/gollum'
|
require './lib/gollum1'
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
|
|
||||||
require './lib/grit'
|
require './lib/grit1'
|
||||||
|
|
|
@ -90,12 +90,12 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "comments", :force => true do |t|
|
create_table "comments", :force => true do |t|
|
||||||
|
t.string "commentable_id"
|
||||||
t.string "commentable_type"
|
t.string "commentable_type"
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.text "body"
|
t.text "body"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.decimal "commentable_id", :precision => 50, :scale => 0
|
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "containers", :force => true do |t|
|
create_table "containers", :force => true do |t|
|
||||||
|
@ -117,7 +117,6 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
|
||||||
t.string "locked_by"
|
t.string "locked_by"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
t.string "queue"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
|
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 "email", :default => "", :null => false
|
||||||
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
||||||
t.string "reset_password_token"
|
t.string "reset_password_token"
|
||||||
|
t.datetime "reset_password_sent_at"
|
||||||
t.datetime "remember_created_at"
|
t.datetime "remember_created_at"
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
|
@ -346,7 +346,6 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
|
||||||
t.string "uname"
|
t.string "uname"
|
||||||
t.string "role"
|
t.string "role"
|
||||||
t.string "language", :default => "en"
|
t.string "language", :default => "en"
|
||||||
t.datetime "reset_password_sent_at"
|
|
||||||
t.integer "own_projects_count", :default => 0, :null => false
|
t.integer "own_projects_count", :default => 0, :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ describe CollaboratorsController do
|
||||||
@user.relations
|
@user.relations
|
||||||
set_session_for(@user)
|
set_session_for(@user)
|
||||||
@group = Factory(:group)
|
@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
|
end
|
||||||
|
|
||||||
it_should_behave_like 'project admin user'
|
it_should_behave_like 'project admin user'
|
||||||
|
|
|
@ -2,9 +2,12 @@
|
||||||
|
|
||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :register_request do
|
factory :register_request do
|
||||||
name "MyString"
|
name "MyString"
|
||||||
email "MyString"
|
email { Factory.next(:email) }
|
||||||
token "MyString"
|
token "MyString"
|
||||||
approved false
|
interest "MyString"
|
||||||
end
|
more "MyText"
|
||||||
|
approved false
|
||||||
|
rejected false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue