PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/specs/core/application.ds

http://github.com/wilkie/djehuty
Unknown | 20 lines | 17 code | 3 blank | 0 comment | 0 complexity | 970834125df40c3e77baf5cdbc9ad43e MD5 | raw file
 1module specs.core.application;
 2
 3import testing.support;
 4import core.application;
 5
 6describe application() {
 7	describe creation() {
 8		 it should_not_create_inside_another_application {
 9			class MyApplication : Application {}
10			shouldThrow();
11			MyApplication app = new MyApplication();
12		 }
13	}
14
15	describe name() {
16		it should_get_the_name {
17			should(Djehuty.application().name() == "DjehutyTester");
18		}
19	}
20}