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