Skip to content

Commit

Permalink
add spec for custom subject
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Mar 19, 2014
1 parent 9051df8 commit 6487ae5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/capistrano/notifier/mail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@
subject.send(:subject).should == "Example branch master deployed to test"
end

context 'with a custom subject' do
it 'uses a custom subject' do
configuration.load do |configuration|
set :notifier_mail_options, subject: 'test'
end

expect(subject.send(:subject)).to eq 'test'
end
end

it 'should work with gitlab' do
configuration.load do |configuration|
set :notifier_mail_options, {
Expand Down

0 comments on commit 6487ae5

Please sign in to comment.