define(['src/credits', 'src/addhtml'], function(credits, addHtml) {
	describe("A suite", function() {
		it("contains spec with an expectation", function() {
			expect(true).toBe(true);
		});
	});
	
	describe("Credits", function() {
		it("has getCredits function", function() {
			expect(credits.getCredits).toBeDefined();
			expect(typeof credits.getCredits).toBe('function');
		});
	});

	describe("Fixtures", function() {
		it("works", function() {
			expect($('<input type="checkbox" checked="checked"/>')).toBeChecked();	

			var fixtures = setFixtures(readFixtures('myfixture.html'));
			addHtml.addHtml(fixtures.find('#my-fixture'), 'test');

			expect(fixtures.find('#my-fixture').html()).toBe('test');
		});
	});
});



@@ -2,20 +2,16 @@
 efine(%5B'
-src/
 credits'
@@ -17,20 +17,16 @@
 ', '
-src/
 addhtml'
 %5D, f
@@ -21,16 +21,28 @@
 addhtml'
+, 'purchase'
 %5D, funct
@@ -61,16 +61,26 @@
  addHtml
+, purchase
 ) %7B%0A%09des
@@ -727,15 +727,222 @@
 %7D);%0A%09%7D);
+%0A%0A%09describe(%22Purchase%22, function() %7B%0A%09%09it(%22has purchaseProduct function%22, function() %7B%0A%09%09%09expect(credits.purchaseProduct).toBeDefined();%0A%09%09%09expect(typeof credits.purchaseProduct).toBe('function');%0A%09%09%7D);%0A%09%7D);
 %0A%7D);%0A%0A%0A

test deps