Commit 0852d5e4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
parent ea04ed78
...@@ -228,7 +228,7 @@ describe Note do ...@@ -228,7 +228,7 @@ describe Note do
it { should be_valid } it { should be_valid }
its(:noteable) { should == issue } its(:noteable) { should == issue }
its(:note) { should == "_mentioned in commit #{commit.sha[0..10]}_" } its(:note) { should == "_mentioned in commit #{commit.sha}_" }
end end
context 'merge request from an issue' do context 'merge request from an issue' do
...@@ -267,7 +267,7 @@ describe Note do ...@@ -267,7 +267,7 @@ describe Note do
its(:noteable_type) { should == "Commit" } its(:noteable_type) { should == "Commit" }
its(:noteable_id) { should be_nil } its(:noteable_id) { should be_nil }
its(:commit_id) { should == commit.id } 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
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment