diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-10 22:20:00 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-10 22:20:00 +0300 |
| commit | 0ae892007dac045e58cab793806f778b90ce6c2e (patch) | |
| tree | 41beb9d808fa23b8dfff6119e4c6faa1d630e97d /spec/models/wiki_spec.rb | |
| parent | 0415566b3796f500e7f694a0aee4882752d150c1 (diff) | |
| download | gitlab-ce-0ae892007dac045e58cab793806f778b90ce6c2e.tar.gz | |
Remove Wiki and db table since we use gollum now
Diffstat (limited to 'spec/models/wiki_spec.rb')
| -rw-r--r-- | spec/models/wiki_spec.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/models/wiki_spec.rb b/spec/models/wiki_spec.rb deleted file mode 100644 index 9750b81d303..00000000000 --- a/spec/models/wiki_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -# == 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 - describe "Associations" do - it { should belong_to(:project) } - it { should belong_to(:user) } - it { should have_many(:notes).dependent(:destroy) } - end - - describe "Mass assignment" do - it { should_not allow_mass_assignment_of(:project_id) } - it { should_not allow_mass_assignment_of(:user_id) } - end - - describe "Validation" do - it { should validate_presence_of(:title) } - it { should ensure_length_of(:title).is_within(1..250) } - it { should validate_presence_of(:content) } - it { should validate_presence_of(:user) } - end -end |
