Fix tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-10-10 16:36:06 +03:00
parent ea04ed7879
commit 0852d5e480
No known key found for this signature in database
GPG key ID: 161B5D6A44D3D88A

View file

@ -228,7 +228,7 @@ describe Note do
it { should be_valid }
its(:noteable) { should == issue }
its(:note) { should == "_mentioned in commit #{commit.sha[0..10]}_" }
its(:note) { should == "_mentioned in commit #{commit.sha}_" }
end
context 'merge request from an issue' do
@ -267,7 +267,7 @@ describe Note do
its(:noteable_type) { should == "Commit" }
its(:noteable_id) { should be_nil }
its(:commit_id) { should == commit.id }
its(:note) { should == "_mentioned in commit #{parent_commit.id[0..10]}_" }
its(:note) { should == "_mentioned in commit #{parent_commit.id}_" }
end
end