spec/lita/handlers/restart_elvis_spec.rb in lita-restart-elvis-0.1.0 vs spec/lita/handlers/restart_elvis_spec.rb in lita-restart-elvis-0.2.0

- old
+ new

@@ -6,12 +6,12 @@ use_vcr_cassette subject { described_class.new(robot) } before do - ENV['HEROKU_OAUTH_TOKEN'] = 'abcdef' - ENV['HEROKU_RESTARTABLE_APP_NAME'] = 'fake-elvis' + ENV['HEROKU_OAUTH_TOKEN'] ||= 'abcdef' + ENV['HEROKU_RESTARTABLE_APP_NAME'] ||= 'fake-elvis' end describe 'routes' do it { is_expected.to route('lita restart elvis') } end @@ -32,8 +32,14 @@ it 'should ask to restart a dyno' do expect(dyno_double).to receive(:restart_all).with('xyz') subject.restart_dyno_named('xyz') + end + end + + describe 'lita restart elvis' do + it 'should work' do + send_message('lita restart elvis') end end end