dfb5da9da3
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 |
||
---|---|---|
app | ||
config | ||
db | ||
doc | ||
features | ||
lib | ||
log | ||
public | ||
script | ||
spec | ||
vendor | ||
.foreman | ||
.gitignore | ||
.rails_footnotes | ||
.rspec | ||
.travis.yml | ||
CHANGELOG | ||
config.ru | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
Procfile | ||
Procfile.production | ||
Rakefile | ||
README.md | ||
resque.sh | ||
resque_dev.sh | ||
VERSION |
Welcome to GitLab
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
Contacts
Twitter:
- @gitlabhq
- @dzaporozhets
Contribute
Want to help - send a pull request. We'll accept good pull requests.