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