jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Teaspoon tests fail after RSpec upgrade to 2.99 #440

Closed udiudi closed 8 years ago

udiudi commented 8 years ago

Not sure if that's really related, but our Teaspoon tests are failing after we upgraded to Rspec 2.99.

We use Teaspoon 1.1.1, Jasmine 2.3.4, and seems like something really low-level is failing for us, an example:

1) Controller: ComposeCtrl sets data on init
     Failure/Error: TypeError: 'undefined' is not an object (evaluating 'spec.$injector') in http://127.0.0.1:58977/assets/angular-mocks.js?body=1.js (line 1716)

  2) Controller: ComposeCtrl sets data on init
     Failure/Error: TypeError: 'undefined' is not an object (evaluating 'spec.$modules') in http://127.0.0.1:58977/assets/angular-mocks.js?body=1.js (line 1787)

  3) Controller: ComposeCtrl sets data on init
     Failure/Error: Expected undefined to be Object({ my_boards_data: true }).

  4) Controller: ComposeCtrl sets data on init
     Failure/Error: Expected undefined to be Object({ top_boards_data: true }).

  5) Controller: ComposeCtrl sets data on init
     Failure/Error: Expected undefined to equal [  ].

  6) Controller: ComposeCtrl sets data on init
     Failure/Error: TypeError: 'undefined' is not a function (evaluating 'httpBackend.flush()') in http://127.0.0.1:58977/assets/pulse_angular/controllers/compose_controller_spec.js?body=1.js (line 104)

  7) Controller: ComposeCtrl sets data on init
     Failure/Error: TypeError: 'undefined' is not a function (evaluating 'httpBackend.verifyNoOutstandingExpectation()') in http://127.0.0.1:58977/assets/pulse_angular/controllers/compose_controller_spec.js?body=1.js (line 97)

  8) Controller: ComposeCtrl sets data on init
     Failure/Error: TypeError: 'undefined' is not an object (evaluating 'spec.$injector') in http://127.0.0.1:58977/assets/angular-mocks.js?body=1.js (line 1659)

  9) Controller: ComposeCtrl subscribes for updates
     Failure/Error: TypeError: 'undefined' is not an object (evaluating 'spec.$injector') in http://127.0.0.1:58977/assets/angular-mocks.js?body=1.js (line 1716)

Any ideas?

jejacks0n commented 8 years ago

Well, I can tell you that teaspoon doesn't have a spec.$injector, so it's something about angular mocks and likely isn't teaspoon directly.

udiudi commented 8 years ago

I see.. thanks, I'll start looking elsewhere.