gitlabhq/spec/models/merge_request_spec.rb

19 lines
475 B
Ruby
Raw Normal View History

2011-11-28 08:39:43 +01:00
require 'spec_helper'
describe MergeRequest do
2011-11-28 22:24:08 +01:00
describe "Validation" do
it { should validate_presence_of(:target_branch) }
it { should validate_presence_of(:source_branch) }
end
describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:author_id) }
it { should_not allow_mass_assignment_of(:project_id) }
end
describe 'modules' do
it { should include_module(IssueCommonality) }
2012-09-08 02:23:49 +02:00
it { should include_module(Votes) }
end
2011-11-28 08:39:43 +01:00
end