Sha256: 6e1f8fca2b62460cd29ae52dc48fe5001e3b01a4d30eb96b48b75bbbd139744b
Contents?: true
Size: 1001 Bytes
Versions: 5
Compression:
Stored size: 1001 Bytes
Contents
require './test/test_includes' class OwlTestMain < Test::Unit::TestCase include OwlTestIncludes def test_home setup_page get '/' assert last_response.ok? end def test_settings settings = YAML.load(File.read( Owl::Lib::Settings::SETTINGS_PATH )) assert_equal settings['name'], Owl::Lib::Settings.instance.settings['name'] assert_equal settings['theme'], Owl::Lib::Settings.instance.settings['theme'] end def test_pages_and_posts get '/about' assert last_response.ok? # r = last_response.body get '/page/about' assert last_response.ok? end def test_not_found get '/this-will-never-be-found' assert_equal 404, last_response.status end def test_bad_directory_structure begin Dir.chdir ROOT FileUtils.rm_rf SAMPLE_DATA_PATH + "/data" Owl::Lib::Checker.check! rescue Exception => e # an error **should** happen. error = true end assert_not_nil error end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
owl-cms-0.1.5 | test/test_basics.rb |
owl-cms-0.1.3 | test/test_basics.rb |
owl-cms-0.1.2 | test/test_basics.rb |
owl-cms-0.1.1 | test/test_basics.rb |
owl-cms-0.1.0 | test/test_basics.rb |