diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-09 11:14:17 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-09 11:14:17 +0300 |
commit | 41e53eb98058a0082e0951aa21812b04d745414a (patch) | |
tree | 6f7fbd592891a2b5ae99cb7417c624aebc790da2 /spec | |
parent | dc33f71b181d154c8d9937f777fa16e9cf1d968d (diff) | |
download | gitlab-ce-41e53eb98058a0082e0951aa21812b04d745414a.tar.gz |
Annotated
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/event_spec.rb | 16 | ||||
-rw-r--r-- | spec/models/issue_spec.rb | 18 | ||||
-rw-r--r-- | spec/models/key_spec.rb | 14 | ||||
-rw-r--r-- | spec/models/merge_request_spec.rb | 20 | ||||
-rw-r--r-- | spec/models/milestone_spec.rb | 14 | ||||
-rw-r--r-- | spec/models/note_spec.rb | 16 | ||||
-rw-r--r-- | spec/models/protected_branch_spec.rb | 11 | ||||
-rw-r--r-- | spec/models/snippet_spec.rb | 15 | ||||
-rw-r--r-- | spec/models/system_hook_spec.rb | 12 | ||||
-rw-r--r-- | spec/models/user_spec.rb | 34 | ||||
-rw-r--r-- | spec/models/users_project_spec.rb | 12 | ||||
-rw-r--r-- | spec/models/web_hook_spec.rb | 12 | ||||
-rw-r--r-- | spec/models/wiki_spec.rb | 14 |
13 files changed, 208 insertions, 0 deletions
diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index 5cb68761b29..77b49246c46 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -1,3 +1,19 @@ +# == Schema Information +# +# Table name: events +# +# id :integer not null, primary key +# target_type :string(255) +# target_id :integer +# title :string(255) +# data :text +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# action :integer +# author_id :integer +# + require 'spec_helper' describe Event do diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index 099c41985cb..7c98b9ea58d 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -1,3 +1,21 @@ +# == Schema Information +# +# Table name: issues +# +# id :integer not null, primary key +# title :string(255) +# assignee_id :integer +# author_id :integer +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# closed :boolean default(FALSE), not null +# position :integer default(0) +# branch_name :string(255) +# description :text +# milestone_id :integer +# + require 'spec_helper' describe Issue do diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb index 169bd890c3d..d3231af88bc 100644 --- a/spec/models/key_spec.rb +++ b/spec/models/key_spec.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: keys +# +# id :integer not null, primary key +# user_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# key :text +# title :string(255) +# identifier :string(255) +# project_id :integer +# + require 'spec_helper' describe Key do diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index a54849240ae..7a1f541f42b 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -1,3 +1,23 @@ +# == Schema Information +# +# Table name: merge_requests +# +# id :integer not null, primary key +# target_branch :string(255) not null +# source_branch :string(255) not null +# project_id :integer not null +# author_id :integer +# assignee_id :integer +# title :string(255) +# closed :boolean default(FALSE), not null +# created_at :datetime not null +# updated_at :datetime not null +# st_commits :text(4294967295 +# st_diffs :text(4294967295 +# merged :boolean default(FALSE), not null +# state :integer default(1), not null +# + require 'spec_helper' describe MergeRequest do diff --git a/spec/models/milestone_spec.rb b/spec/models/milestone_spec.rb index ef50e012722..1aba20c651d 100644 --- a/spec/models/milestone_spec.rb +++ b/spec/models/milestone_spec.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: milestones +# +# id :integer not null, primary key +# title :string(255) not null +# project_id :integer not null +# description :text +# due_date :date +# closed :boolean default(FALSE), not null +# created_at :datetime not null +# updated_at :datetime not null +# + require 'spec_helper' describe Milestone do diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 34493a1117d..8b622d5b8c5 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -1,3 +1,19 @@ +# == Schema Information +# +# Table name: notes +# +# id :integer not null, primary key +# note :text +# noteable_id :string(255) +# noteable_type :string(255) +# author_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# project_id :integer +# attachment :string(255) +# line_code :string(255) +# + require 'spec_helper' describe Note do diff --git a/spec/models/protected_branch_spec.rb b/spec/models/protected_branch_spec.rb index c6b09f358fb..874c4e4d885 100644 --- a/spec/models/protected_branch_spec.rb +++ b/spec/models/protected_branch_spec.rb @@ -1,3 +1,14 @@ +# == Schema Information +# +# Table name: protected_branches +# +# id :integer not null, primary key +# project_id :integer not null +# name :string(255) not null +# created_at :datetime not null +# updated_at :datetime not null +# + require 'spec_helper' describe ProtectedBranch do diff --git a/spec/models/snippet_spec.rb b/spec/models/snippet_spec.rb index 465612e0f19..ada5fcdbcb8 100644 --- a/spec/models/snippet_spec.rb +++ b/spec/models/snippet_spec.rb @@ -1,3 +1,18 @@ +# == Schema Information +# +# Table name: snippets +# +# id :integer not null, primary key +# title :string(255) +# content :text +# author_id :integer not null +# project_id :integer not null +# created_at :datetime not null +# updated_at :datetime not null +# file_name :string(255) +# expires_at :datetime +# + require 'spec_helper' describe Snippet do diff --git a/spec/models/system_hook_spec.rb b/spec/models/system_hook_spec.rb index fe2a5836fe7..b5d338a8c55 100644 --- a/spec/models/system_hook_spec.rb +++ b/spec/models/system_hook_spec.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: web_hooks +# +# id :integer not null, primary key +# url :string(255) +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# type :string(255) default("ProjectHook") +# + require "spec_helper" describe SystemHook do diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index b77d88783f4..5f41fb05ed1 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1,3 +1,37 @@ +# == Schema Information +# +# Table name: users +# +# id :integer not null, primary key +# email :string(255) default(""), not null +# encrypted_password :string(128) default(""), not null +# reset_password_token :string(255) +# reset_password_sent_at :datetime +# remember_created_at :datetime +# sign_in_count :integer default(0) +# current_sign_in_at :datetime +# last_sign_in_at :datetime +# current_sign_in_ip :string(255) +# last_sign_in_ip :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# name :string(255) +# admin :boolean default(FALSE), not null +# projects_limit :integer default(10) +# skype :string(255) default(""), not null +# linkedin :string(255) default(""), not null +# twitter :string(255) default(""), not null +# authentication_token :string(255) +# dark_scheme :boolean default(FALSE), not null +# theme_id :integer default(1), not null +# bio :string(255) +# blocked :boolean default(FALSE), not null +# failed_attempts :integer default(0) +# locked_at :datetime +# extern_uid :string(255) +# provider :string(255) +# + require 'spec_helper' describe User do diff --git a/spec/models/users_project_spec.rb b/spec/models/users_project_spec.rb index a64ff3678bf..5b6516b32cf 100644 --- a/spec/models/users_project_spec.rb +++ b/spec/models/users_project_spec.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: users_projects +# +# id :integer not null, primary key +# user_id :integer not null +# project_id :integer not null +# created_at :datetime not null +# updated_at :datetime not null +# project_access :integer default(0), not null +# + require 'spec_helper' describe UsersProject do diff --git a/spec/models/web_hook_spec.rb b/spec/models/web_hook_spec.rb index 422d67cf016..d71fec811f0 100644 --- a/spec/models/web_hook_spec.rb +++ b/spec/models/web_hook_spec.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: web_hooks +# +# id :integer not null, primary key +# url :string(255) +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# type :string(255) default("ProjectHook") +# + require 'spec_helper' describe ProjectHook do diff --git a/spec/models/wiki_spec.rb b/spec/models/wiki_spec.rb index 7830c8215fc..96aebd2ddb7 100644 --- a/spec/models/wiki_spec.rb +++ b/spec/models/wiki_spec.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: wikis +# +# id :integer not null, primary key +# title :string(255) +# content :text +# project_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# slug :string(255) +# user_id :integer +# + require 'spec_helper' describe Wiki do |