jwhitley / requirejs-rails-jasmine-template

A step-by-step guide and experimental integration of jasmine-gem and requirejs-rails.
16 stars 8 forks source link

Not finding specs? #2

Open svoynow opened 12 years ago

svoynow commented 12 years ago

I'm having some trouble getting this to work. All I have is a sanity check spec (a javascript version of your coffeescript example)

define(function(require) {
  var PlaylistModel;
  PlaylistModel = require('player');
  describe('existence', function() {
    it('should be defined', function() {
      expect(PlaylistModel).toBeDefined();
    });
  });
});

I'm not getting any errors, but jasmine doesn't appear to see this as a spec at all. The test suite web page at localhost:8888 is blank and rake jasmine:ci tells me "no examples found"

Have I failed to translate properly from Coffeescript, or is there something deeper going on?

(Using jasmine 1.21 and requirejs-rails 0.9.0)

danivalentin commented 11 years ago

I have the same error when running rake jasmine:ci.

When running rake jasmine, I noticed that I have a javascript error - that define is not defined - and that the run.html.erb file is not loading, from what I can tell, the default one is.

danivalentin commented 11 years ago

BTW, I saw these changes in this fork: https://github.com/TaopaiC/requirejs-rails-jasmine-template And it works now for me.

martinstreicher commented 11 years ago

What was the issue, danivalentin?