State machine added for merge_status field

This commit is contained in:
Andrew8xx8 2013-02-20 17:15:01 +04:00
parent 1b7b17d12a
commit e2d94e0719
3 changed files with 35 additions and 36 deletions

View file

@ -32,6 +32,12 @@ describe MergeRequest do
it { should_not allow_mass_assignment_of(:project_id) }
end
describe "Respond to" do
it { should respond_to(:unchecked?) }
it { should respond_to(:can_be_merged?) }
it { should respond_to(:cannot_be_merged?) }
end
describe 'modules' do
it { should include_module(Issuable) }
end