Fix code that depends on incorrect inflector behavior

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-11-03 12:00:27 +01:00
parent 8a22b5bf54
commit d23ffc832c
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
.search-result-row
= render 'projects/commits/commit', project: @project, commit: commits
= render 'projects/commits/commit', project: @project, commit: commit

View file

@ -468,7 +468,7 @@ describe Notify do
subject { Notify.note_commit_email(recipient.id, note.id) }
it_behaves_like 'a note email'
it_behaves_like 'an answer to an existing thread', 'commits'
it_behaves_like 'an answer to an existing thread', 'commit'
it 'has the correct subject' do
is_expected.to have_subject /#{commit.title} \(#{commit.short_id}\)/