describe('Transition config test', function() {

    beforeEach(function() {
        loadFixtures('fixture.html');
    });

    it('should add a class of fancy-leave to the existing container', function() {

    });

    it('should add a container with a class of fancy-enter', function() {

    });

});
@@ -38,24 +38,62 @@
 nction() %7B%0A%0A
+    var async = new AsyncSpec(this);%0A%0A
     beforeEa
@@ -151,32 +151,38 @@
 );%0A    %7D);%0A%0A    
+async.
 it('should add a
@@ -232,32 +232,36 @@
 iner', function(
+done
 ) %7B%0A%0A    %7D);%0A%0A  
@@ -257,86 +257,1583 @@
     
-%7D);%0A%0A    it('should add a container with a class of fancy-enter', function() %7B
+    fancyClick.init(%7B%0A            animationMethod: 'transition'%0A        %7D);%0A%0A        spyOn($, 'ajax').andCallFake(function () %7B%0A            return %7B%0A                then: function (callback) %7B%0A                    callback('%3C!doctype html%3E%5Cn%3Chtml%3E%5Cn%3Chead%3E%5Cn%3Ctitle%3ENew page title%3C/title%3E%5Cn%3C/head%3E%5Cn%3Cbody%3E%5Cn%3Cdiv class=%22main%22%3E%5Cn    New page%5Cn%3C/div%3E%5Cn%3C/body%3E%5Cn%3C/html%3E');%0A%0A                    setTimeout(function() %7B%0A                        var element = $('.fancy-leave');%0A                        expect(element.length).toEqual(1);%0A                        %0A                        done();%0A                    %7D, 100);%0A%0A                %7D%0A            %7D;%0A        %7D);%0A%0A        $('a:first').trigger('click');%0A%0A    %7D);%0A%0A    async.it('should add a container with a class of fancy-enter', function(done) %7B%0A%0A        fancyClick.init(%7B%0A            container: '.main',%0A            animationMethod: 'transition'%0A        %7D);%0A%0A        spyOn($, 'ajax').andCallFake(function () %7B%0A            return %7B%0A                then: function (callback) %7B%0A                    callback('%3C!doctype html%3E%5Cn%3Chtml%3E%5Cn%3Chead%3E%5Cn%3Ctitle%3ENew page title%3C/title%3E%5Cn%3C/head%3E%5Cn%3Cbody%3E%5Cn%3Cdiv class=%22main%22%3E%5Cn    New page%5Cn%3C/div%3E%5Cn%3C/body%3E%5Cn%3C/html%3E');%0A%0A                    setTimeout(function() %7B%0A                        var element = $('.fancy-enter');%0A                        expect(element.length).toEqual(1);%0A                        expect(element.hasClass('main')).toBeTruthy();%0A%0A                        done();%0A                    %7D, 100);%0A%0A                %7D%0A            %7D;%0A        %7D);%0A%0A        $('a:first').trigger('click');
 %0A%0A  

Add transition mode tests