Robb Kidd dfb5da9da3 Disable observers in specs. Enable only when observer is under test.
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
2012-06-20 14:09:46 -04:00
2012-06-11 10:43:57 +03:00
2011-10-09 00:36:38 +03:00
2012-06-15 07:15:28 +03:00
2012-01-08 13:20:20 +02:00
2012-04-04 01:02:54 +03:00
2011-10-09 00:36:38 +03:00
2011-10-09 00:36:38 +03:00
2012-06-17 23:05:33 +03:00
2012-05-19 13:17:34 +03:00
2011-10-09 00:36:38 +03:00
2012-06-20 14:09:46 -04:00
2011-10-09 00:36:38 +03:00
2012-01-09 13:30:19 +02:00
2012-02-19 12:36:16 +02:00
2011-10-09 00:36:38 +03:00
2012-06-05 20:31:09 +03:00
2012-05-19 13:17:34 +03:00

Welcome to GitLab build status build status

GitLab is a free project and repository management application

Application details

  • based on Ruby on Rails
  • distributed under the MIT License
  • works with gitolite

Requirements

  • Ubuntu/Debian
  • ruby 1.9.2+
  • mysql or sqlite
  • git
  • gitolite
  • redis

Install

Checkout wiki pages for installation information, migration, etc.

Community

Google Group

Contacts

Twitter:

  • @gitlabhq
  • @dzaporozhets

Email

Contribute

Want to help - send a pull request. We'll accept good pull requests.

S
Description
No description provided
Readme MIT
170 MiB
Languages
Ruby 75.2%
Haml 10.4%
CoffeeScript 6.1%
SCSS 4.7%
Gherkin 2.4%
Other 1.2%