require.EqualError(t,Pipe{}.Announce(ctx),`announce: failed to announce to twitter: template: tmpl:1: unexpected "}" in operand`)
}
funcTestAnnounceMissingEnv(t*testing.T){
ctx:=context.New(config.Project{
Announce:config.Announce{
Twitter:config.Twitter{
Enabled:true,
},
},
})
require.NoError(t,Pipe{}.Default(ctx))
require.EqualError(t,Pipe{}.Announce(ctx),`announce: failed to announce to twitter: env: environment variable "TWITTER_CONSUMER_KEY" should not be empty`)