
describe('fixedWeekCount', function() {
	var options;

	beforeEach(function() {
		affix('#cal');
		options = {
			defaultView: 'month',
			defaultDate: '2014-07-01' // has 5 weeks
		};
	});

	describe('when true', function() {
		beforeEach(function() {
			options.fixedWeekCount = true;
		});
		it('renders a 5-week month with 6 rows', function() {
			$('#cal').fullCalendar(options);
			var weeks = $('.fc-week');
			expect(weeks.length).toBe(6);
		});
	});

	describe('when false', function() {
		beforeEach(function() {
			options.fixedWeekCount = false;
		});
		it('renders a 5-week month with 5 rows', function() {
			$('#cal').fullCalendar(options);
			var weeks = $('.fc-week');
			expect(weeks.length).toBe(5);
		});
	});

	[ true, false ].forEach(function(bool) {
		describe('regardless of value (' + bool + ')', function() {
			beforeEach(function() {
				options.fixedWeekCount = bool;
				options.defaultDate = '2014-08-01'; // has 6 weeks
			});
			it('should render a 6-week month consistently', function() {
				$('#cal').fullCalendar(options);
				var weeks = $('.fc-week');
				expect(weeks.length).toBe(6);
			});
		});
	});
});

@@ -1,9 +1,8 @@
-%0A
 describe
@@ -37,80 +37,24 @@
 ) %7B%0A
-%09var options;%0A%0A%09beforeEach(function() %7B%0A%09%09affix('#cal');%0A%09%09o
+%0A%09pushO
 ptions
- = 
+(
 %7B%0A
-%09
 %09%09de
@@ -73,17 +73,16 @@
 month',%0A
-%09
 %09%09defaul
@@ -120,13 +120,8 @@
 eks%0A
-%09%09%7D;%0A
 %09%7D);
@@ -162,45 +162,28 @@
 ) %7B%0A
+%0A
 %09%09
-beforeEach(func
+pushOp
 tion
+s
 (
-) 
 %7B%0A%09%09%09
-options.
 fixe
@@ -196,23 +196,22 @@
 ount
- =
+:
  true
-;
 %0A%09%09%7D);%0A
+%0A
 %09%09it
@@ -261,38 +261,28 @@
 tion() %7B%0A%09%09%09
-$('#cal').full
+init
 Calendar(opt
@@ -270,39 +270,32 @@
 %09%09%09initCalendar(
-options
 );%0A%09%09%09var weeks 
@@ -346,24 +346,25 @@
 e(6);%0A%09%09%7D);%0A
+%0A
 %09%7D);%0A%0A%09descr
@@ -398,45 +398,28 @@
 ) %7B%0A
+%0A
 %09%09
-beforeEach(func
+pushOp
 tion
+s
 (
-) 
 %7B%0A%09%09%09
-options.
 fixe
@@ -432,24 +432,23 @@
 ount
- =
+:
  false
-;
 %0A%09%09%7D);%0A
+%0A
 %09%09it
@@ -502,30 +502,20 @@
 () %7B%0A%09%09%09
-$('#cal').full
+init
 Calendar
@@ -511,31 +511,24 @@
 nitCalendar(
-options
 );%0A%09%09%09var we
@@ -583,24 +583,25 @@
 e(5);%0A%09%09%7D);%0A
+%0A
 %09%7D);%0A%0A%09%5B tru
@@ -702,47 +702,30 @@
 ) %7B%0A
+%0A
 %09%09%09
-beforeEach(func
+pushOp
 tion
+s
 (
-) 
 %7B%0A%09%09%09%09
-options.
 fixe
@@ -738,29 +738,20 @@
 ount
- =
+:
  bool
-;
+,
 %0A%09%09%09%09
-options.
 defa
@@ -757,18 +757,17 @@
 aultDate
- =
+:
  '2014-0
@@ -771,17 +771,16 @@
 4-08-01'
-;
  // has 
@@ -794,16 +794,17 @@
 %0A%09%09%09%7D);%0A
+%0A
 %09%09%09it('s
@@ -867,22 +867,12 @@
 %09%09%09%09
-$('#cal').full
+init
 Cale
@@ -880,15 +880,8 @@
 dar(
-options
 );%0A%09
@@ -951,16 +951,17 @@
 %0A%09%09%09%7D);%0A
+%0A
 %09%09%7D);%0A%09%7D
@@ -963,12 +963,13 @@
 );%0A%09%7D);%0A
+%0A
 %7D);%0A

Update tests