/specs/core/application.ds
http://github.com/wilkie/djehuty · Unknown · 20 lines · 17 code · 3 blank · 0 comment · 0 complexity · 970834125df40c3e77baf5cdbc9ad43e MD5 · raw file
- module specs.core.application;
- import testing.support;
- import core.application;
- describe application() {
- describe creation() {
- it should_not_create_inside_another_application {
- class MyApplication : Application {}
- shouldThrow();
- MyApplication app = new MyApplication();
- }
- }
- describe name() {
- it should_get_the_name {
- should(Djehuty.application().name() == "DjehutyTester");
- }
- }
- }