Sha256: 0dcf41806ddae855e95fe7ee7f6ce54fd60225e79890f6b7e76347450cfee265
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
require File.dirname(__FILE__) + '/../../test_helper' require 'graticule/cli' module Graticule class CliTest < Test::Unit::TestCase def setup URI::HTTP.responses = [] URI::HTTP.uris = [] end def test_start prepare_response(:success) Kernel.expects(:puts) Kernel.stubs(:puts) result = Graticule::Cli.start ['-s', 'yahoo', '-a', 'YahooDemo', 'Saugatuck,', 'MI'] end protected def prepare_response(id) URI::HTTP.responses << response('yahoo', id) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graticule-0.2.1 | test/unit/graticule/cli_test.rb |
graticule-0.2.2 | test/unit/graticule/cli_test.rb |