Skip to content
Snippets Groups Projects
  1. Feb 05, 2013
  2. Jan 31, 2013
  3. Jan 18, 2013
  4. Jan 04, 2013
  5. Jan 03, 2013
  6. Jan 02, 2013
  7. Dec 20, 2012
  8. Dec 15, 2012
  9. Nov 25, 2012
  10. Nov 24, 2012
  11. Nov 23, 2012
  12. Nov 22, 2012
  13. Nov 20, 2012
  14. Nov 19, 2012
  15. Nov 13, 2012
  16. Oct 17, 2012
  17. Oct 02, 2012
  18. Sep 26, 2012
  19. Sep 05, 2012
  20. Sep 02, 2012
  21. Aug 30, 2012
  22. Aug 29, 2012
  23. Aug 21, 2012
  24. Aug 10, 2012
  25. Jul 31, 2012
  26. Jul 18, 2012
  27. Jul 02, 2012
  28. Jun 26, 2012
  29. Jun 20, 2012
    • Robb Kidd's avatar
      Disable observers in specs. Enable only when observer is under test. · dfb5da9d
      Robb Kidd authored
      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
      dfb5da9d
  30. Apr 04, 2012
  31. Mar 15, 2012
Loading