define(['views/base_view'], function (baseView) {

    var run = function () {

        module("BaseView");

        test("Test BaseView rendering of compiled template", function () {
            var test_model = new Backbone.Model({name: "Test"}),
                TestView = baseView.extend({
                    template_selector: "#milestone-table-heading",
                    el: "#qunit-fixture"
                }), tv;

            tv = new TestView({model: test_model});
            equal(tv.template_selector, "#milestone-table-heading", "Correct selector");

            tv.render();
            equal(tv.el.firstChild.innerHTML, "Test",
                  "Rendered element contains model's data");
        });

        test("Test getTemplateData", function () {
            var test_model = new Backbone.Model({name: "Test"}),
                TestView = baseView.extend({
                    template_selector: "#milestone-table-heading",
                    el: "#qunit-fixture",
                    getTemplateData: function (data) {
                        data.name = "Changed test";
                        return data;
                    }
                }), tv;

            tv = new TestView({model: test_model});
            tv.render();
            equal(tv.el.firstChild.innerHTML, "Changed test",
                  "Rendered element contains getTemplateData changes");
        });

    };

    return run;

});

@@ -47,22 +47,97 @@
 ) %7B%0A
-%0A    var run =
+%09%0A%09jasmine.getFixtures().fixturesPath = 'tests/html_fixtures';%0A%09%0A    describe(%22BaseView%22,
  fun
@@ -151,34 +151,92 @@
 ) %7B%0A
-%0A
     
-    module(%22BaseView%22
+%09beforeEach(function() %7B%0A    %09%09loadFixtures('components/base_view.html');%0A    %09%7D
 );%0A%0A
@@ -235,35 +235,33 @@
   %09%7D);%0A%0A        
-tes
+i
 t(%22Test BaseView
@@ -611,29 +611,69 @@
             
-equal
+since(%22Correct selector%22);%0A            expect
 (tv.template
@@ -681,18 +681,26 @@
 selector
-, 
+).toEqual(
 %22#milest
@@ -721,28 +721,8 @@
 ing%22
-, %22Correct selector%22
 );%0A%0A
@@ -762,107 +762,117 @@
     
-equal(tv.el.firstChild.innerHTML, %22Test%22,%0A                  %22Rendered element contains model's data
+since(%22Rendered element contains model's data%22);%0A            expect(tv.el.firstChild.innerHTML).toEqual(%22Test
 %22);%0A
@@ -892,19 +892,17 @@
         
-tes
+i
 t(%22Test 
@@ -1436,167 +1436,159 @@
     
-equal(tv.el.firstChild.innerHTML, %22Changed test%22,%0A                  %22Rendered element contains getTemplateData changes%22);%0A        %7D);%0A%0A
+since(%22Rendered element contains getTemplateData changes%22);%0A            expect(tv.el.firstChild.innerHTML).toEqual(%22Changed test%22);%0A    
     %7D
+)
 ;
-%0A
 %0A    
-return run;%0A
+%7D);
 %0A%7D);

Update base view tests to use Jasmine