summaryrefslogtreecommitdiffstats
path: root/js/tests/services/businesslayer/businesslayerSpec.coffee
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-16 13:19:28 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-16 15:23:12 +0200
commit8df6d36d49d89f3bb7186b36436606adb039b3f8 (patch)
tree2fbbe1e55995d0f9277557838a25f351e371540e /js/tests/services/businesslayer/businesslayerSpec.coffee
parentefc118431b6afbb7cc1df887e11195d8c7e761a7 (diff)
move instantiation into file where object is declared, fix unittests that overwrote services for all unittests and caused them to fail
Diffstat (limited to 'js/tests/services/businesslayer/businesslayerSpec.coffee')
-rw-r--r--js/tests/services/businesslayer/businesslayerSpec.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/services/businesslayer/businesslayerSpec.coffee b/js/tests/services/businesslayer/businesslayerSpec.coffee
index e93fcedd5..db4cb62a0 100644
--- a/js/tests/services/businesslayer/businesslayerSpec.coffee
+++ b/js/tests/services/businesslayer/businesslayerSpec.coffee
@@ -27,7 +27,7 @@ describe 'BusinessLayer', ->
beforeEach inject (@_BusinessLayer, @ActiveFeed, @FeedType, @ItemModel) =>
type = @FeedType.Starred
- angular.module('News').factory 'Persistence', =>
+
@getItemsSpy = jasmine.createSpy('getItems')
@persistence = {
getItems: @getItemsSpy