From 93918168f5a32ab4fc19d47b7048622719254cf5 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 23 Mar 2015 11:59:20 +0100 Subject: [PATCH] I forgot to commit tests for 455e758 --- tests/unit/utils/status-image-formats-test.coffee | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/unit/utils/status-image-formats-test.coffee diff --git a/tests/unit/utils/status-image-formats-test.coffee b/tests/unit/utils/status-image-formats-test.coffee new file mode 100644 index 00000000..3be2c2cc --- /dev/null +++ b/tests/unit/utils/status-image-formats-test.coffee @@ -0,0 +1,13 @@ +`import Ember from 'ember'` +`import format from 'travis/utils/status-image-formats'` +`import config from 'travis/config/environment'` + +module 'Status image formats' + +test 'it generates CCTray url with a slug', -> + url = format('CCTray', 'travis-ci/travis-web') + equal url, '#/repos/travis-ci/travis-web/cc.xml' + +test 'it generates CCTray url with a slug and a branch', -> + url = format('CCTray', 'travis-ci/travis-web', 'development') + equal url, '#/repos/travis-ci/travis-web/cc.xml?branch=development'