Sha256: eaa419ca5e51ae13859923a30d109d2ffa4f59b5de2d393aa24eb0b9bc44e839

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

require 'spec_helper'

describe Lita::Handlers::OnewheelNasaApod, lita_handler: true do
  it { is_expected.to route('cosmos') }
  it { is_expected.to route('Good morning.') }

  it 'will return a random garfield comic' do
    allow(RestClient).to receive(:get) { 'http://apod.nasa.gov/apod/image/1610/GhostAurora_Takasaka_960.jpg' }
    send_message 'you know the cosmos'
    expect(replies.last).to include('http://apod.nasa.gov/apod/image/1610/GhostAurora_Takasaka_960.jpg')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-onewheel-nasa-apod-0.0.0 spec/lita/handlers/onewheel_nasa_apod_spec.rb