Sha256: 3ac2aac6837466e1c494fb384decdea567d942ea1649078dd4e853ed749a38eb
Contents?: true
Size: 383 Bytes
Versions: 3
Compression:
Stored size: 383 Bytes
Contents
require 'helper' class TestMartin < Test::Unit::TestCase context 'A CLI instance' do should 'output 30' do CLI.run('add 20 to 10') assert_equal 30, CLI.answer end should 'output error message' do CLI.run('subtract 15 from 25') assert_equal 'Error', CLI.answer end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
martin-0.1.3 | test/test_martin.rb |
martin-0.1.2 | test/test_martin.rb |
martin-0.1.1 | test/test_martin.rb |