(function() {
  'use strict';

  describe("<%= pluginFullName %>", function() {

    var slides, deck,

      createDeck = function() {
        slides = [];

        var parent = document.createElement('article');
        for (var i = 0; i < 10; i++) {
          slides.push(document.createElement('section'));
          parent.appendChild(slides[i]);
        }

        deck = bespoke.from(parent, {
          <%= pluginNameCamelized %>: true
        });
      };

    beforeEach(createDeck);

    describe("deck.slide", function() {

      beforeEach(function() {
        deck.slide(0);
      });

      it("should not add a useless 'foobar' class to the slide", function() {
        expect(slides[0].classList.contains('foobar')).toBe(false);
      });

    });

  });

}());

(function() {
  'use strict';

  describe("<%= pluginFullName %>", function() {

    var deck,

      createDeck = function() {
        slides = [];

        var parent = document.createElement('article');
        for (var i = 0; i < 10; i++) {
          parent.appendChild(document.createElement('section'));
        }

        deck = bespoke.from(parent, {
          <%= pluginNameCamelized %>: true
        });
      };

    beforeEach(createDeck);

    describe("deck.slide", function() {

      beforeEach(function() {
        deck.slide(0);
      });

      it("should not add a useless 'foobar' class to the slide", function() {
        expect(deck.slides[0].classList.contains('foobar')).toBe(false);
      });

    });

  });

}());

Remove redundant 'slides' var from test
Remove redundant 'slides' var from test
