/specs/core/application.ds

http://github.com/wilkie/djehuty · Unknown · 20 lines · 17 code · 3 blank · 0 comment · 0 complexity · 970834125df40c3e77baf5cdbc9ad43e MD5 · raw file

  1. module specs.core.application;
  2. import testing.support;
  3. import core.application;
  4. describe application() {
  5. describe creation() {
  6. it should_not_create_inside_another_application {
  7. class MyApplication : Application {}
  8. shouldThrow();
  9. MyApplication app = new MyApplication();
  10. }
  11. }
  12. describe name() {
  13. it should_get_the_name {
  14. should(Djehuty.application().name() == "DjehutyTester");
  15. }
  16. }
  17. }