summaryrefslogtreecommitdiffstats
path: root/js/tests/controllers/itemcontrollerSpec.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/controllers/itemcontrollerSpec.coffee')
-rw-r--r--js/tests/controllers/itemcontrollerSpec.coffee16
1 files changed, 10 insertions, 6 deletions
diff --git a/js/tests/controllers/itemcontrollerSpec.coffee b/js/tests/controllers/itemcontrollerSpec.coffee
index f95f4a459..d6a33b68e 100644
--- a/js/tests/controllers/itemcontrollerSpec.coffee
+++ b/js/tests/controllers/itemcontrollerSpec.coffee
@@ -21,20 +21,21 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
###
-describe '_ItemController', ->
+describe 'ItemController', ->
beforeEach module 'News'
- beforeEach inject (@_ItemController, @ActiveFeed, @ShowAll, @FeedType,
- @StarredCount, @FeedModel, @FolderModel, @ItemModel,
- @ItemBl, @FeedBl, @FeedLoading) =>
+ beforeEach inject ($controller, @ItemBl, @FeedBl) =>
@scope = {}
@persistence = {
getItems: ->
}
- @controller = new @_ItemController(@scope, @ItemBl, @FeedModel,
- @FeedLoading, @FeedBl)
+
+ replace =
+ $scope: @scope
+ Persistence: @persistence
+ @controller = $controller('ItemController', replace)
it 'should make ItemBl availabe', =>
@@ -43,3 +44,6 @@ describe '_ItemController', ->
it 'should make FeedBl availabe', =>
expect(@scope.feedBl).toBe(@FeedBl)
+
+
+ it 'should '