summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-10 16:36:06 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-10 16:36:06 +0300
commit0852d5e480e2789dcc6b5cce08fc0875f97af4bf (patch)
treebd0af6e2d59c18eb342f268616114086f9ba32cb /spec
parentea04ed7879ad7177bef7a6dbe3bf90d76ebb8b45 (diff)
downloadgitlab-ce-0852d5e480e2789dcc6b5cce08fc0875f97af4bf.tar.gz
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/models/note_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index d8b4a27eb07..2d839e9611b 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -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