Cannot run evergreen tests

24 views
Skip to first unread message

csaunders

unread,
May 26, 2011, 9:23:20 AM5/26/11
to ruby-ev...@googlegroups.com
I am trying to test with evergreen, but when I try to run my specs I get the following error:

Uncaught Error: jasmine.Suite() required

I'm not sure what the issue is, I thought maybe it's because I need to have jasmine installed as well. So I tried installing that as well, but still get this error. Is there something I am doing wrong?

The only requires in my spec are for some spine.js code plus the model I want to test. Currently, the tests are running in Chrome.

csaunders

unread,
May 26, 2011, 9:30:18 AM5/26/11
to ruby-ev...@googlegroups.com
The problem was being caused by having some initializer outside of an it section.

describe('my test' function(){
  var something = doSomeInit(); // This doesn't work -- need to have a setup section?
  it('should test some things', function(){
     expect(1, 1)
  });
});

I'm new to how spec-like testing is done, which most likely explains why I ran into the problem.
Reply all
Reply to author
Forward
0 new messages