Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

"Uncaught TypeError: Cannot call method 'complete' of undefined" When running Jasmine with no spec files #65

Closed
joneath opened this issue Nov 20, 2011 · 3 comments
Labels

Comments

@joneath
Copy link

joneath commented Nov 20, 2011

When starting with a fresh rails 3.1 project running jasmine-core (1.2.0.rc1) from master with no jasmine spec files, causes a JavaScript exception in the jasmine.HtmlReporter object at line 87 of jasmine-html.js. This caused me to debug my project configuration, until I added a single spec file with a pending spec.

Here are the contents of the file:

describe("pending", function(){
it("should be pending", function(){

});
});

Jasmine expects at least one "it" function or it blows up. The exception should either be nicer, or preferably it should degrade nicely to a 0 of 0 specs run report. I may patch this, but for now a single spec file with a spec is the workaround.

@infews
Copy link
Contributor

infews commented Feb 14, 2012

@gunnarahlberg
Copy link

seems to be fixed, can not reproduce error on Jasmine1.1.0 revision 1315677058

@joneath
Copy link
Author

joneath commented May 2, 2012

This issue only effects Jasmine 1.2.0 (all RC versions).

@jboyens jboyens closed this as completed Jul 25, 2013
npmcomponent pushed a commit to npmcomponent/bestander-jasmine that referenced this issue Jan 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants