gitlabhq/spec/models/merge_request_spec.rb
2012-09-26 11:18:35 -07:00

19 lines
475 B
Ruby

require 'spec_helper'
describe MergeRequest do
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) }
it { should include_module(Votes) }
end
end