define([
    'models/current-user',
    'models/quest',
    'views/quest/like'
], function (currentUser, QuestModel, Like) {
    describe('like:', function () {
        beforeEach(function () {
            spyOn($, 'ajax');
        });

        var proto = {
            "ts" : 1360197975,
            "status" : "open",
            "_id" : "5112f9577a8f1d370b000002",
            "team" : ["bar"],
            "name" : "q1",
            "author" : "bar"
        };

        describe('quest without likes', function () {
            var model = new QuestModel(_.extend(proto, {}));
            var view = new Like({ model: model });

            view.render();
            it("doesn't contain likes badge", function () {
                expect(view.$el).not.toContain('.badge-success');
            });
            it("contains 'like' button", function () {
                expect(view.$el).toContain('button');
            });
        });

        describe('quest with likes', function () {
            var model = new QuestModel(_.extend(proto, { likes: ['baz', 'baz2'] }));
            var view = new Like({ model: model });

            view.render();
            it("contains likes badge", function () {
                expect(view.$el).toContain('.badge-success');
                expect(view.$('.badge-success').text()).toContain('2');
            });
            it("contains 'like' button", function () {
                expect(view.$el).toContain('button');
            });
        });

        describe("current user's quest", function () {
            var model = new QuestModel(_.extend(proto, {
                likes: ['baz', 'baz2'],
                team: ['jasmine'],
                user: 'jasmine'
            }));
            var view = new Like({ model: model });

            view.render();
            it("contains likes badge", function () {
                expect(view.$el).toContain('.badge-success');
            });
            it("doesn't contain 'like' button", function () {
                expect(view.$el).not.toContain('button');
            });
        });
    });
});

@@ -887,37 +887,36 @@
 $el).toContain('
-butto
+a.bt
 n');%0A           
@@ -1442,37 +1442,36 @@
 $el).toContain('
-butto
+a.bt
 n');%0A           

fix frontend tests