Skip to content

Commit

Permalink
Test coverage level up
Browse files Browse the repository at this point in the history
  • Loading branch information
onewheelskyward committed Dec 15, 2015
1 parent eecb2e4 commit 4e00698
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/lita/handlers/forecast_io_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
it { is_expected.to route('ansiwind') }
it { is_expected.to route('asciiwind') }
it { is_expected.to route('ansisun') }
it { is_expected.to route('asciisun') }
it { is_expected.to route('asciicloud') }
it { is_expected.to route('ansicloud') }
it { is_expected.to route('ansiclouds') }
it { is_expected.to route('asciitemp') }
Expand Down Expand Up @@ -186,11 +188,21 @@
expect(replies.last).to eq("Portland, OR 8 day sun forecast |\u000308█\u000309▃\u000308▇\u000309▁_\u000307▅\u000309▃\u000307▅\u0003|")
end

it '!asciisun' do
send_message 'asciisun'
expect(replies.last).to eq("Portland, OR 8 day sun forecast |\u000308'\u000309-\u000308*\u000309._\u000307~\u000309-\u000307~\u0003|")
end

it '!ansicloud' do
send_message 'ansicloud'
expect(replies.last).to eq('Portland, OR 24h cloud cover |___________▁▁▁▁▁▁▁▁▃▅▅▅| max 49.0%')
end

it '!asciicloud' do
send_message 'asciicloud'
expect(replies.last).to eq('Portland, OR 24h cloud cover |___________........-~~~| max 49.0%')
end

it '!asciitemp' do
send_message 'asciitemp'
expect(replies.last).to eq("Portland, OR 24 hr temps: 28.3°F |\u000306_.-\u000310~*'\u000303''\u000310''*~\u000306~------....\u0003| 28.4°F Range: 28.3°F - 39.0°F")
Expand Down

0 comments on commit 4e00698

Please sign in to comment.