{"action":"closed","issue":{"url":"https://api.github.com/repos/wardbell/bardjs/issues/7","labels_url":"https://api.github.com/repos/wardbell/bardjs/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/wardbell/bardjs/issues/7/comments","events_url":"https://api.github.com/repos/wardbell/bardjs/issues/7/events","html_url":"https://github.com/wardbell/bardjs/issues/7","id":87051743,"number":7,"title":"Failed to instantiate module function fakeRouteProvider","user":{"login":"bbohling","id":98033,"avatar_url":"https://avatars.githubusercontent.com/u/98033?v=3","gravatar_id":"","url":"https://api.github.com/users/bbohling","html_url":"https://github.com/bbohling","followers_url":"https://api.github.com/users/bbohling/followers","following_url":"https://api.github.com/users/bbohling/following{/other_user}","gists_url":"https://api.github.com/users/bbohling/gists{/gist_id}","starred_url":"https://api.github.com/users/bbohling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbohling/subscriptions","organizations_url":"https://api.github.com/users/bbohling/orgs","repos_url":"https://api.github.com/users/bbohling/repos","events_url":"https://api.github.com/users/bbohling/events{/privacy}","received_events_url":"https://api.github.com/users/bbohling/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-10T17:53:05Z","updated_at":"2015-07-01T03:35:14Z","closed_at":"2015-07-01T03:35:14Z","body":"Sounds similar to some other closed issues, but no solution jumped out at me. Using 0.1.3 of bardjs I am getting the following error:\r\n\r\n```\r\nError: [$injector:modulerr] Failed to instantiate module function fakeRouteProvider($provide) due to:\r\n\tTypeError: 'undefined' is not a function (evaluating 'sinon.stub()')\r\n\t    at /Users/bbohling/Projects/itdz/itdz-ui/app/bower_components/bardjs/dist/bard.js:377\r\n```\r\n\r\nMy spec is a complete rip off of something John Papa did in one of his Pluralsight trainings:\r\n\r\n```\r\ndescribe('itdz', function() {\r\n    var controller;\r\n    var page = mockPage.getPage();\r\n\r\n    beforeEach(function() {\r\n        bard.appModule('itdz');\r\n        bard.inject('$controller', '$q', '$rootScope', 'pageService');\r\n    });\r\n\r\n    beforeEach(function() {\r\n        sinon.stub(pageService, 'slug').returns($q.when(page));\r\n        controller = $controller('Content');\r\n        $rootScope.$apply();\r\n    });\r\n\r\n    bard.verifyNoOutstandingHttpRequests();\r\n\r\n    describe('Content controller', function() {\r\n        it('should be created successfully', function () {\r\n            expect(controller).to.be.defined;\r\n        });\r\n\r\n        describe('after activate', function() {\r\n            it('should have called pageService.slug 1 time', function () {\r\n                expect(pageService.slug).to.have.been.calledOnce;\r\n            });\r\n\r\n        });\r\n    });\r\n});\r\n```\r\n\r\nAnd I verified that sinon is indeed included in the karma files array. Any ideas what I am doing wrong? I am assuming it's my fault. :)"}}