You have to order the .js files in this order:
<script type="text/javascript" src="../jasmine2/libs/jasmine-2.0.0/jasmine.js"></script>
<script type="text/javascript" src="../jasmine2/libs/jasmine-2.0.0/jasmine-html.js"></script>
<script type="text/javascript" src="../jasmine2/libs/jasmine-2.0.0/boot.js"></script>
<script type="text/javascript" src="../../js/libs/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="../jasmine2/libs/jasmine-2.0.0/jasmine-jquery.js"></script>
In your spec file, you can globally defined your view object as:
describe('View', function() {
'use strict';
{VARIABLE_DECLARATIONS}
var fixtureUrl = "/path/to/fixture/fixture.html";
define(['views/home.view','jasmine','jasmine-jquery'],
function(HomeView,Jasmine,JasmineJQuery) {
{CREATE OBJECTS IF NECESSARY...}
describe('Initialize', function() {
beforeEach(function(){
var html = jasmine.getFixtures().read(fixtureUrl);
jasmine.getFixtures().set(html);
});
it('should check initializeView is called ', function() {
{YOUR_CODE_HERE...for test from the fixtures};
//expect($('{CONTAINER_ELEMENT_ID}').get(0)).toHaveId("{DIV_ID}");
});
});
});
});
I hope this helps.