summaryrefslogtreecommitdiff
path: root/spec/mailers/notify_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r--spec/mailers/notify_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index e9c87b9b2e9..7bf42671033 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -190,7 +190,8 @@ describe Notify do
describe 'on a commit' do
let(:commit) do
mock(:commit).tap do |commit|
- commit.stub(:id).and_return('faux_sha_1')
+ commit.stub(:id).and_return('fauxsha1')
+ commit.stub(:project).and_return(project)
end
end
before(:each) { note.stub(:target).and_return(commit) }
@@ -204,7 +205,7 @@ describe Notify do
end
it 'contains a link to the commit' do
- should have_body_text /faux_sha_1/
+ should have_body_text /fauxsha1/
end
end