Tests are fixed now

This commit is contained in:
Dmitriy Zaporozhets 2013-01-05 12:12:02 +02:00
parent 0a94640e32
commit e3d7ce2cc4
6 changed files with 19 additions and 23 deletions

View file

@ -39,13 +39,4 @@ describe ProtectedBranch do
branch.destroy
end
end
describe '#commit' do
let(:branch) { create(:protected_branch) }
it 'commits itself to its project' do
branch.project.repository.should_receive(:commit).with(branch.name)
branch.commit
end
end
end