Sha256: 222c9d60e3863134798cb52554df55bb8f2625f6a0179288f5ba5ecdcb6b1528
Contents?: true
Size: 565 Bytes
Versions: 4
Compression:
Stored size: 565 Bytes
Contents
require 'helper' module Kernel def system(s) ; end def puts(s) ; end end class TestClient < Test::Unit::TestCase def setup global_setup end def test_add_service Stars.config.expects(:prompt_for_username).with('favstar').once Stars::Client.any_instance.stubs(:display) Stars::Client.any_instance.stubs(:star_loop) Stars::Client.new(%w(add favstar)) end def test_show_only_one_service Stars::Favstar.expects(:posts).returns([]) Stars::Client.any_instance.stubs(:star_loop) Stars::Client.new(['favstar']) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stars-0.5.3 | test/test_client.rb |
stars-0.5.2 | test/test_client.rb |
stars-0.5.1 | test/test_client.rb |
stars-0.5.0 | test/test_client.rb |