summaryrefslogtreecommitdiffstats
path: root/js/tests/services/models
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/models
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/models')
-rw-r--r--js/tests/services/models/feedmodelSpec.coffee12
1 files changed, 8 insertions, 4 deletions
diff --git a/js/tests/services/models/feedmodelSpec.coffee b/js/tests/services/models/feedmodelSpec.coffee
index c73c2149d..6df9d6e9f 100644
--- a/js/tests/services/models/feedmodelSpec.coffee
+++ b/js/tests/services/models/feedmodelSpec.coffee
@@ -25,10 +25,14 @@ describe 'FeedModel', ->
beforeEach module 'News'
- beforeEach =>
- angular.module('News').factory 'Utils', =>
- @utils =
- imagePath: jasmine.createSpy('utils')
+ beforeEach module ($provide) =>
+ @imagePath = jasmine.createSpy('imagePath')
+ @utils =
+ imagePath: @imagePath
+
+ $provide.value 'Utils', @utils
+ return
+
beforeEach inject (@FeedModel, @_Model) =>