spec/lita/handlers/enhance_spec.rb in lita-enhance-0.9.1 vs spec/lita/handlers/enhance_spec.rb in lita-enhance-0.9.2

- old
+ new

@@ -99,9 +99,20 @@ it 'should call out when nothing could be enhanced' do send_command('enhance bubbles') expect(replies).to include('I could not find anything to enhance') end + describe 'under Slack' do + before do + robot.config.robot.adapter = :slack + end + + it 'should format the response with a code block' do + send_command('enhance 54.214.188.37') + expect(replies).to include('```*box01*```') + end + end + describe 'under HipChat' do before do robot.config.robot.adapter = :hipchat end