Sha256: 285df79a421f3c18e435c35697cb65012be50ee1b1b0aaab9470513fafa421a8
Contents?: true
Size: 798 Bytes
Versions: 4
Compression:
Stored size: 798 Bytes
Contents
# eh. one day. $:.unshift File.dirname(__FILE__) + "/..:lib" require 'test/unit' require 'fileutils' require 'tempfile' require 'cheat' Sheets = Hash.new do |h,k| k = k.to_s h[k] = YAML.load(File.read("test/fixtures/#{k}.yml")) rescue nil end class CheatTest < Test::Unit::TestCase def test_gets_from_host end def test_sets_to_cache end def test_gets_from_arbitrary_host end def test_gracefully_fail_if_host_bunk end def test_creates_cache_dir end def test_doesnt_create_cache_dir_if_exists end def test_loads_from_cache_if_exists end def test_gets_section_if_exists end def test_displays_everything_on_failed_section_search end def test_gets_recent_sheets end def test_gets_all_sheets end def test_uses_env_for_cache_dir end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cheat-1.1.0 | test/test_cheat.rb |
cheat-1.0.2 | test/test_cheat.rb |
cheat-1.2.1 | test/test_cheat.rb |
cheat-1.2 | test/test_cheat.rb |