describe("Joris feature", function() {

    it("should be present", function() {
        this.input = $('<input id="timepicker1" type="text">')
                        .appendTo('body')
                        .timepicker();

        expect($('body')).toContain('#timepicker1');
    });
});

@@ -7,13 +7,23 @@
 be(%22
-Joris
+Timepicker init
  fea
@@ -46,45 +46,490 @@
 ) %7B%0A
-%0A    it(%22should be present%22, 
+    var $input,%0A        tp,%0A        defaultTimepicker;%0A%0A    beforeEach(function () %7B%0A        loadFixtures('timepicker.html');%0A%0A        $input1 = $('#timepicker1');%0A        timepicker1 = $input1.timepicker();%0A        tp1 = timepicker1.data('timepicker');%0A%0A        $input2 = $('#timepicker2');%0A        timepicker2 = $input2.timepicker(%7B%0A            template: 'modal',%0A            minuteStep: 30%0A        %7D);%0A        tp2 = timepicker2.data('timepicker');%0A    %7D);%0A%0A    afterEach(
 function
 () %7B
@@ -516,32 +516,33 @@
 terEach(function
+ 
 () %7B%0A        thi
@@ -542,104 +542,772 @@
     
-this.input = $('%3Cinput id=%22timepicker1%22 type=%22text%22%3E')%0A                        .appendTo('body
+$input1.data('timepicker').remove();%0A        $input1.remove();%0A        $input2.data('timepicker').remove();%0A        $input2.remove();%0A    %7D);%0A%0A    it(%22should be available on the jquery object%22, function() %7B%0A        expect($.fn.timepicker).toBeDefined();%0A    %7D);%0A%0A    it(%22should be chainable%22, function() %7B%0A        expect(timepicker1).toBe($input1);%0A    %7D);%0A%0A    it('should have sensible defaults', function() %7B%0A        expect(tp1.defaultTime).toBeTruthy();%0A        expect(tp1.minuteStep).toBe(15);%0A        expect(tp1.secondStep).toBe(15);%0A        expect(tp1.disableFocus).toBe(false);%0A        expect(tp1.showSeconds).toBe(false);%0A        expect(tp1.showInputs).toBe(true);%0A        expect(tp1.showMeridian).toBe(true);%0A        expect(tp1.template).toBe('dropdown
 ')
+;
 %0A   
@@ -1315,90 +1315,1297 @@
     
-                .timepicker();%0A%0A        expect($('body')).toContain('#timepicker1'
+expect(tp1.modalBackdrop).toBe(false);%0A        expect(tp1.modalBackdrop).toBe(false);%0A        expect(tp1.isOpen).toBe(false);%0A    %7D);%0A%0A    it('should allow user to configure defaults', function() %7B%0A        expect(tp2.template).toBe('modal');%0A        expect(tp2.minuteStep).toBe(30);%0A    %7D);%0A%0A    it('widget should be shown and trigger show events on input click', function() %7B%0A        var showEvent = false,%0A            shownEvent = false;%0A%0A        $input1.on('show', function() %7B%0A            showEvent = true;%0A        %7D);%0A        $input1.on('shown', function() %7B%0A            shownEvent = true;%0A        %7D);%0A%0A        $input1.trigger('click');%0A%0A        expect(tp1.isOpen).toBe(true);%0A        expect(showEvent).toBe(true);%0A        expect(shownEvent).toBe(true);%0A    %7D);%0A%0A    it('widget should be hidden and trigger hide events on click outside of widget', function() %7B%0A        var hideEvent = false,%0A            hiddenEvent = false;%0A%0A        $input1.on('hide', function() %7B%0A            console.log('woopy');%0A            hideEvent = true;%0A        %7D);%0A        $input1.on('hidden', function() %7B%0A            hiddenEvent = true;%0A        %7D);%0A%0A        $('body').trigger('mousedown');%0A        expect(tp1.isOpen).toBe(false);%0A        expect(hideEvent).toBe(true);%0A        expect(hiddenEvent).toBe(true
 );%0A 
@@ -2611,12 +2611,13 @@
     %7D);%0A
+%0A
 %7D);%0A

add some specs