State machine added for merge_status field
This commit is contained in:
parent
1b7b17d12a
commit
e2d94e0719
3 changed files with 35 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue