spec/tasks_spec.rb in slackistrano-0.0.12 vs spec/tasks_spec.rb in slackistrano-0.1.0

- old
+ new

@@ -38,17 +38,18 @@ end it "calls Slackistrano.post with all the right arguments on slack:deploy:#{stage}" do set "slack_run_#{stage}".to_sym, ->{ true } set :slack_team, ->{ 'team' } - set :slack_token, ->{ 'token' } - set :slack_channel, ->{ 'channel' } + set :slack_token, ->{ 'token' } + set :slack_channel, ->{ 'channel' } set :slack_icon_url, ->{ 'http://icon.url' } - set :slack_icon_emoji, ->{ ':emoji:' } - set "slack_msg_#{stage}".to_sym, ->{ 'text message' } + set :slack_icon_emoji, ->{ ':emoji:' } + set "slack_msg_#{stage}".to_sym, ->{ 'text message' } expect(Slackistrano).to receive(:post).with( team: 'team', token: 'token', + via_slackbot: false, payload: { channel: 'channel', username: 'Slackistrano', icon_url: 'http://icon.url', icon_emoji: ':emoji:',