suite('rb/resources/models/ValidateDiffModel', function() {
    var model;

    beforeEach(function() {
        model = new RB.ValidateDiffModel();
    });

    describe('methods', function() {
        describe('url', function() {
            it('Without local site', function() {
                expect(_.result(model, 'url')).toBe('/api/validation/diffs/');
            });

            it('With local site', function() {
                model.set('localSitePrefix', 's/test-site/');
                expect(_.result(model, 'url')).toBe('/s/test-site/api/validation/diffs/');
            });
        });
    });

    describe('toJSON', function() {
        it('repository field', function() {
            var data;

            model.set('repository', 123);
            data = model.toJSON();
            expect(model.get('repository')).toBe(123);
        });
    });
});

suite('rb/resources/models/ValidateDiffModel', function() {
    var model;

    beforeEach(function() {
        model = new RB.ValidateDiffModel();
    });

    describe('methods', function() {
        describe('url', function() {
            it('Without local site', function() {
                expect(_.result(model, 'url')).toBe('/api/validation/diffs/');
            });

            it('With local site', function() {
                model.set('localSitePrefix', 's/test-site/');
                expect(_.result(model, 'url')).toBe('/s/test-site/api/validation/diffs/');
            });
        });
    });

    describe('toJSON', function() {
        it('repository field', function() {
            var data;

            model.set('repository', 123);
            data = model.toJSON();
            expect(data.repository).toBe(123);
        });
    });
});

Fix up a broken js-test.
Fix up a broken js-test.

This test was asserting that a thing was itself, rather than what it was
supposed to be asserting (that a thing's JSON-serialization was correct).

Testing done:
Ran js-tests.

Reviewed at https://reviews.reviewboard.org/r/8735/
