describe('now', function() {

  var options

  beforeEach(function() {
    affix('#cal')
    options = {
      defaultDate: '2014-05-01'
    }
  })

  describe('when month view', function() {
    beforeEach(function() {
      options.defaultView = 'month'
    })
    it('changes the highlighted day when customized', function() {
      options.now = '2014-05-06'
      $('#cal').fullCalendar(options)
      var todayCell = $('#cal td.fc-today')
      var todayDate = todayCell.data('date')
      expect(todayDate).toEqual('2014-05-06')
    })
  })

  describe('when agendaWeek view', function() {
    beforeEach(function() {
      options.defaultView = 'agendaWeek'
    })
    it('changes the highlighted day when customized', function() {
      options.now = '2014-04-29T12:00:00'
      $('#cal').fullCalendar(options)
      var todayCell = $('#cal td.fc-today')
      expect(todayCell.data('date')).toBe('2014-04-29')
    })
  })

  it('accepts a function that returns a moment', function() {
    options.defaultView = 'month'
    options.now = function() {
      return moment.utc('2014-05-01')
    }
    $('#cal').fullCalendar(options)
    var todayCell = $('#cal td.fc-today')
    var todayDate = todayCell.data('date')
    expect(todayDate).toEqual('2014-05-01')
  })

  it('accepts a function that returns a moment-ish string', function() {
    options.defaultView = 'month'
    options.now = function() {
      return '2014-05-01'
    }
    $('#cal').fullCalendar(options)
    var todayCell = $('#cal td.fc-today')
    var todayDate = todayCell.data('date')
    expect(todayDate).toEqual('2014-05-01')
  })

})

@@ -29,83 +29,22 @@
 %0A%0A  
-var options%0A%0A  beforeEach(function() %7B%0A    affix('#cal')%0A    options = %7B%0A  
+pushOptions(%7B%0A
     
@@ -69,22 +69,16 @@
 -05-01'%0A
-    %7D%0A
   %7D)%0A%0A  
@@ -126,38 +126,28 @@
     
-beforeEach(func
+pushOp
 tion
+s
 (
-) 
 %7B%0A      
 opti
@@ -138,32 +138,24 @@
 ons(%7B%0A      
-options.
 defaultView 
@@ -145,34 +145,33 @@
      defaultView
- =
+:
  'month'%0A    %7D)%0A
@@ -239,37 +239,51 @@
 n() %7B%0A      
-options.now =
+initCalendar(%7B%0A        now:
  '2014-05-06
@@ -294,38 +294,9 @@
     
-$('#cal').fullCalendar(options
+%7D
 )%0A  
@@ -310,37 +310,32 @@
  todayCell = $('
-#cal 
 td.fc-today')%0A  
@@ -322,32 +322,52 @@
  $('td.fc-today'
+, currentCalendar.el
 )%0A      var toda
@@ -512,38 +512,28 @@
     
-beforeEach(func
+pushOp
 tion
+s
 (
-) 
 %7B%0A      
 opti
@@ -524,32 +524,24 @@
 ons(%7B%0A      
-options.
 defaultView 
@@ -539,18 +539,17 @@
 aultView
- =
+:
  'agenda
@@ -634,29 +634,43 @@
 %7B%0A      
-options.now =
+initCalendar(%7B%0A        now:
  '2014-0
@@ -694,38 +694,9 @@
     
-$('#cal').fullCalendar(options
+%7D
 )%0A  
@@ -710,37 +710,32 @@
  todayCell = $('
-#cal 
 td.fc-today')%0A  
@@ -726,24 +726,44 @@
 td.fc-today'
+, currentCalendar.el
 )%0A      expe
@@ -883,32 +883,45 @@
 ion() %7B%0A    
-options.
+initCalendar(%7B%0A      
 defaultView 
@@ -915,34 +915,33 @@
  defaultView
- =
+:
  'month'
 %0A    options
@@ -928,34 +928,28 @@
  'month'
-%0A
+,%0A 
     
-options.now =
+ now:
  functio
@@ -946,32 +946,34 @@
 w: function() %7B%0A
+  
       return mom
@@ -1002,44 +1002,17 @@
     
+  
 %7D%0A    
-$('#cal').fullCalendar(options
+%7D
 )%0A  
@@ -1024,37 +1024,32 @@
  todayCell = $('
-#cal 
 td.fc-today')%0A  
@@ -1036,32 +1036,52 @@
  $('td.fc-today'
+, currentCalendar.el
 )%0A    var todayD
@@ -1236,24 +1236,37 @@
 ) %7B%0A    
-options.
+initCalendar(%7B%0A      
 defaultV
@@ -1272,18 +1272,17 @@
 View
- =
+:
  'month'
 %0A   
@@ -1281,26 +1281,20 @@
 nth'
-%0A
+,%0A 
     
-options.now =
+ now:
  fun
@@ -1299,24 +1299,26 @@
 unction() %7B%0A
+  
       return
@@ -1339,44 +1339,17 @@
     
+  
 %7D%0A    
-$('#cal').fullCalendar(options
+%7D
 )%0A  
@@ -1373,13 +1373,8 @@
  $('
-#cal 
 td.f
@@ -1381,16 +1381,36 @@
 c-today'
+, currentCalendar.el
 )%0A    va

Update legacy tests