Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

joneath opened this Issue · 3 comments

4 participants


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.


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


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

@jboyens jboyens closed this
@npmcomponent npmcomponent referenced this issue from a commit in npmcomponent/bestander-jasmine
Davis W. Frank Fixes jasmine/jasmine-gem#65 and… 4a1a212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.