Sha256: 1bc07ecf20d7519d5f1e8674b1c38f9c205245232107546f433216861a50fc73

Contents?: true

Size: 413 Bytes

Versions: 6

Compression:

Stored size: 413 Bytes

Contents

beforeEach(function () {
    jasmine.Expectation.addMatchers({
        toBePlaying: function () {
            return {
                compare: function (actual, expected) {
                    var player = actual;

                    return {
                        pass: player.currentlyPlayingSong === expected && player.isPlaying
                    }
                }
            };
        }
    });
});

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
jasmine-core-2.0.0.rc5 ./lib/jasmine-core/example/spec/SpecHelper.js
jasmine-2.0.0.rc4 lib/generators/jasmine/examples/templates/spec/javascripts/helpers/jasmine_examples/SpecHelper.js
jasmine-2.0.0.rc3 lib/generators/jasmine/examples/templates/spec/javascripts/helpers/jasmine_examples/SpecHelper.js
jasmine-core-2.0.0.rc3 ./lib/jasmine-core/example/spec/SpecHelper.js
jasmine-2.0.0.rc2 generators/jasmine/templates/jasmine-example/spec/SpecHelper.js
jasmine-core-2.0.0.rc2 ./lib/jasmine-core/example/spec/SpecHelper.js