// 'View' Spec Skeleton
// ---------------------------------------
//
// !! REMEMBER !!
//      The file {{appName}}/{{fixtureName}}.html in the fixtures directory is empty; fill it with the minimum HTML
//      required for the view to function
//
// And
//      replace this comment with proper documentation of your test!

//
// -- Add description here --
//
// @author your name
// @link https://github.com/pivotal/jasmine/wiki
//
describe('{{scope}}/{{name}} view', function() {

    'use strict';

    beforeEach(function() {
        {{#if viewGlobals.length}}
        // Controller / View references
        // ---------------------------------------
        {{#each viewGlobals}}var {{variableName}} = tetra.debug.{{type}}.retrieve('{{scope}}', '{{name}}');
        {{/each}}
        {{/if}}
        // HTML Fixture
        // ---------------------------------------
        loadFixtures('{{appName}}/{{fixtureName}}.html');
        {{#if viewStubs.length}}
        // Stubs
        // ---------------------------------------
        {{#each viewStubs}}this.{{variableName}} = sinon.stub({{globalName}}.events.{{type}}, '{{target}}');
        {{/each}}
        {{/if}}
        this.growlStub = sinon.stub(VNS.ui, 'growl');
    });

    afterEach(function() {
        {{#each viewStubs}}this.{{variableName}}.restore();
        {{/each}}
        this.growlStub.restore();
    });

    // Test specs
    // ------------------------
    {{#if viewSpecs.length}}{{#each viewSpecs}}
    it('should {{name}}', function(){
        expect(false).toBe(true);
    });
    {{/each}}
    {{else}}
    it('should do something', function(){
       expect(false).toBe(true);
    });{{/if}}

    // User action test specs
    // ------------------------
    {{#if userSpecs.length}}
    {{#each userSpecs}}
    it('should do something on {{{name}}}', function(){
        expect(false).toBe(true);
    });{{/each}}
    {{else}}
    it('should do something on some user interaction', function(){
        expect(false).toBe(true);
    });{{/if}}
});