{"action":"created","issue":{"url":"https://api.github.com/repos/jasmine/jasmine/issues/829","labels_url":"https://api.github.com/repos/jasmine/jasmine/issues/829/labels{/name}","comments_url":"https://api.github.com/repos/jasmine/jasmine/issues/829/comments","events_url":"https://api.github.com/repos/jasmine/jasmine/issues/829/events","html_url":"https://github.com/jasmine/jasmine/issues/829","id":69536329,"number":829,"title":"Async timeouts while writing sync specs","user":{"login":"mspanc","id":389651,"avatar_url":"https://avatars.githubusercontent.com/u/389651?v=3","gravatar_id":"","url":"https://api.github.com/users/mspanc","html_url":"https://github.com/mspanc","followers_url":"https://api.github.com/users/mspanc/followers","following_url":"https://api.github.com/users/mspanc/following{/other_user}","gists_url":"https://api.github.com/users/mspanc/gists{/gist_id}","starred_url":"https://api.github.com/users/mspanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mspanc/subscriptions","organizations_url":"https://api.github.com/users/mspanc/orgs","repos_url":"https://api.github.com/users/mspanc/repos","events_url":"https://api.github.com/users/mspanc/events{/privacy}","received_events_url":"https://api.github.com/users/mspanc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-20T08:33:59Z","updated_at":"2015-06-29T09:15:55Z","closed_at":null,"body":"Hello,\r\n\r\nI get error `Error: 'expect' was used when there was no current spec, this could be because an asynchronous test timed out` while I am writing synchronous specs and 100% sychronous code.\r\n\r\nLog:\r\n\r\n```\r\nFailures:\r\n1) RadioKit.Data.Interface #getQuery if one argument is passed and it is valid but there's no such query encountered a declaration exception\r\n1.1) Error: 'expect' was used when there was no current spec, this could be because an asynchronous test timed out\r\n```\r\n\r\nI am using jasmine 2.2.1 and gulp to compile coffeescript to JS prior to execution. \r\n\r\n```\r\n  describe \"#hasQuery\", ->\r\n    instance = null\r\n\r\n    beforeEach ->\r\n      instance = new RadioKit.Data.Interface({ authUserName: \"123\", authPassword: \"123\" })\r\n\r\n    describe \"if no argument is passed\", ->\r\n      it \"throws an error\", ->\r\n        expect ->\r\n          instance.hasQuery()\r\n        .toThrow()\r\n\r\n    describe \"if one argument is passed\", ->\r\n      describe \"but it is invalid\", ->\r\n        describe \"because it contains something different than a string\", ->\r\n          it \"throws an error\", ->\r\n            expect ->\r\n              instance.hasQuery(123)\r\n            .toThrow()\r\n\r\n      describe \"and it is valid\", ->\r\n        describe \"but there's no such query\", ->\r\n          it \"returns false\", ->\r\n            expect(instance.hasQuery(\"myQuery\")).toBe(false)\r\n\r\n        describe \"and there's such query\", ->\r\n          beforeEach ->\r\n            instance.addQuery(\"myQuery\", \"Track\")\r\n\r\n          it \"returns true\", ->\r\n            expect(instance.hasQuery(\"myQuery\")).toBe(true)\r\n```"},"comment":{"url":"https://api.github.com/repos/jasmine/jasmine/issues/comments/116557457","html_url":"https://github.com/jasmine/jasmine/issues/829#issuecomment-116557457","issue_url":"https://api.github.com/repos/jasmine/jasmine/issues/829","id":116557457,"user":{"login":"jescacena","id":2596642,"avatar_url":"https://avatars.githubusercontent.com/u/2596642?v=3","gravatar_id":"","url":"https://api.github.com/users/jescacena","html_url":"https://github.com/jescacena","followers_url":"https://api.github.com/users/jescacena/followers","following_url":"https://api.github.com/users/jescacena/following{/other_user}","gists_url":"https://api.github.com/users/jescacena/gists{/gist_id}","starred_url":"https://api.github.com/users/jescacena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jescacena/subscriptions","organizations_url":"https://api.github.com/users/jescacena/orgs","repos_url":"https://api.github.com/users/jescacena/repos","events_url":"https://api.github.com/users/jescacena/events{/privacy}","received_events_url":"https://api.github.com/users/jescacena/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T09:15:55Z","updated_at":"2015-06-29T09:15:55Z","body":"it worked for me :+1:  Thanks!"}}