Moving angularjs tag rule logic into its own module

This commit is contained in:
Rob Harrington
2016-03-17 15:24:08 +11:00
parent f9acee2be4
commit 3d78b375c6
7 changed files with 10 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ describe "TagRulesCtrl", ->
enterprise = null
beforeEach ->
module('admin.enterprises')
module('admin.tagRules')
enterprise =
id: 45
tag_groups: [
@@ -14,8 +14,7 @@ describe "TagRulesCtrl", ->
inject ($rootScope, $controller) ->
scope = $rootScope
scope.Enterprise = enterprise
ctrl = $controller 'TagRulesCtrl', {$scope: scope}
ctrl = $controller 'TagRulesCtrl', {$scope: scope, enterprise: enterprise}
describe "tagGroup start indices", ->
it "updates on initialization", ->