0
rake jasmine을 사용하면 브라우저에서 모든 테스트가 통과됩니다.왜 레이크 재스민은 패스하지만 레이크 재스민 : ci는 TypeError와 함께 실패합니다 : undefined is not function?
function Song() {
...
가 왜 : 레이크 자스민와
, 2 사양이 실패 함께 : 그것은
src_files:
- src/Player.js
- src/Song.js
spec_files:
- '**/*[sS]pec.js'
src_dir:
spec_dir: spec
src/Song.js
가 가질 수 있도록
TypeError: undefined is not a function (evaluating 'expect(player).not.toBePlaying(song)') in http://localhost:36091/__spec__/PlayerSpec.js (line 28)
내 spec/javascripts/support/jasmine.yml
파일을 구성한 rake jasmine:ci
두 가지 예에 실패했습니다.
번째의 고장 하나의 코드는 다음과 같습니다 나는 모든 5 예는 실패를 제거하기 때문에 경우
it("should be able to play a Song", function() {
player.play(song);
expect(player.currentlyPlayingSong).toEqual(song);
//demonstrates use of custom matcher
expect(player).toBePlaying(song); # <-- error here
});
Song.js
로드 할 것처럼 보인다.