Skip to content
Snippets Groups Projects
  1. Jan 03, 2013
  2. Jan 02, 2013
  3. Dec 20, 2012
  4. Dec 15, 2012
  5. Nov 25, 2012
  6. Nov 24, 2012
  7. Nov 23, 2012
  8. Nov 22, 2012
  9. Nov 20, 2012
  10. Nov 19, 2012
  11. Nov 13, 2012
  12. Oct 17, 2012
  13. Oct 02, 2012
  14. Sep 26, 2012
  15. Sep 05, 2012
  16. Sep 02, 2012
  17. Aug 30, 2012
  18. Aug 29, 2012
  19. Aug 21, 2012
  20. Aug 10, 2012
  21. Jul 31, 2012
  22. Jul 18, 2012
  23. Jul 02, 2012
  24. Jun 26, 2012
  25. 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
  26. Apr 04, 2012
  27. Mar 15, 2012
  28. Mar 13, 2012
  29. Mar 12, 2012
  30. Mar 07, 2012
  31. Mar 05, 2012
  32. Mar 04, 2012
  33. Mar 01, 2012
Loading