20 Jun, 2012

2 commits

  • Used the built-in observer enable/disable feature in ActiveModel[1].
    ActiveRecord::Base includes ActiveModel::Observing which provides this
    behavior.
    
    Simple wraps to enable the observer under test were added to the specs
    for: ActivityObserver, IssueObserver, Admin::Users and Issues.
    
    The spec for Project.last_activity was refactored to separate the tests
    for #last_activity and #last_activity_date. Each had doubles added to
    isolate the spec from the hidden dependency on the ActivityObserver
    action to create an Event for the project when an Issue is created. This
    ActivityObserver behavior is already tested by its spec.
    
    [1] http://api.rubyonrails.org/classes/ActiveModel/ObserverArray.html
    Robb Kidd
     
  • Robb Kidd
     

15 Jun, 2012

1 commit


13 Jun, 2012

1 commit


12 Jun, 2012

2 commits


01 Jun, 2012

1 commit


31 May, 2012

1 commit


29 May, 2012

2 commits


27 May, 2012

4 commits


19 May, 2012

1 commit


17 May, 2012

1 commit


26 Apr, 2012

1 commit


24 Apr, 2012

1 commit


14 Apr, 2012

1 commit


09 Apr, 2012

2 commits


25 Mar, 2012

1 commit


20 Mar, 2012

1 commit


19 Mar, 2012

1 commit


15 Mar, 2012

1 commit


13 Mar, 2012

1 commit


04 Mar, 2012

1 commit


24 Feb, 2012

1 commit


21 Feb, 2012

2 commits


20 Feb, 2012

1 commit


18 Feb, 2012

1 commit


16 Feb, 2012

1 commit


11 Feb, 2012

2 commits


08 Feb, 2012

1 commit


06 Feb, 2012

1 commit


30 Jan, 2012

1 commit


29 Jan, 2012

1 commit


28 Jan, 2012

1 commit