Skip to content

Commit

Permalink
Added test for decimal adds.
Browse files Browse the repository at this point in the history
  • Loading branch information
onewheelskyward committed Jan 28, 2018
1 parent ec4a35b commit 496976e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/lita/handlers/onewheel_wolfram_alpha_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def mock_fixture(fixture)
expect(replies.last).to eq('http://www2.wolframalpha.com/Calculate/MSP/MSP8620hdi8ba18h005cd0000268f85ce36b8h331?MSPStoreType=image/gif&s=15 as a service')
end

# it 'will add .0 to a fraction' do
# mock_fixture('onedividedby2')
# send_command 'alpha 1/2'
# expect(replies.last).to eq('0.5')
# end
it 'will add .0 to a fraction' do
mock_fixture('oneovertwo')
send_command 'alpha 1/2'
expect(replies.last).to eq('0.5')
end
end

0 comments on commit 496976e

Please sign in to comment.