Sha256: 6b53a4e7352f1609261e2ac0e27a698bf73a3b09d8d5978a9aa29937406a777d
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 KB
Contents
require File.dirname(__FILE__) + '/test_helper.rb' class DepoConfigureTest < GeneratorTest def test_roots Depo.clear_config! Depo.configure { author 'niquola@gmail.com' themes ['tundra','verdugo'] dojo_version '1.4.2' environments { developmentDjConfig 'parseOnLoad:true;isDebug:true;' productionDjConfig 'parseOnLoad:true;isDebug:false;' } build_options { cssOptimize 'comments.keepLines' optimize 'shrinksafe.keepLines' cssImportIgnore '../dijit.css' internStrings 'true' } build_profile { libs<< 'mylib' pages<< 'app.pages.admin' pages<< 'app.pages.chart' pages<< 'app.pages.nurse' pages<< 'app.pages.dashboard' } generators { head_of_test_page <<-HTML <link rel="stylesheet" href="#{Depo.config.src_path}/common.css" type="text/css" /> HTML } } config=Depo.config assert_equal('1.4.2', config.dojo_version) assert_equal('public/ria', config.root) assert_equal('/ria', config.root_webpath) assert_equal('public/ria/src', config.src_path) assert_equal('public/ria/builds', config.builds_path) assert_equal('niquola@gmail.com', config.author) assert_equal(['tundra','verdugo'],config.themes) assert_equal('parseOnLoad:true;isDebug:true;',config.environments.developmentDjConfig) assert(config.build_profile.pages.include?('app.pages.admin')) assert(config.build_profile.libs.include?('mylib')) assert_match(/common.css/, config.generators.head_of_test_page ) Depo.clear_config! end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
depo-0.0.4 | test/config_test.rb |
depo-0.0.3 | test/config_test.rb |
depo-0.0.2 | test/config_test.rb |
depo-0.0.1 | test/config_test.rb |