Project management and code hosting application. Follow us on twitter @gitlabhq
Go to file
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
app Make IssueObserver handle issus, not MailerObserver 2012-06-20 14:09:46 -04:00
config Add resque_spec to test queuing mail. 2012-06-20 14:09:46 -04:00
db Merge pull request #761 from michaeltrimm/patch-1 2012-05-13 08:20:14 -07:00
doc Add missing libyaml-dev 2012-06-11 10:43:57 +03:00
features Cucumber features: Team, SSH keys 2012-06-18 19:34:09 +03:00
lib #909 fix network graph json generation 2012-06-19 17:29:31 +04:00
log init commit 2011-10-09 00:36:38 +03:00
public fix No route matches static.css Error 2012-05-23 11:00:51 +08:00
script Cucumber: 2012-06-15 07:15:28 +03:00
spec Disable observers in specs. Enable only when observer is under test. 2012-06-20 14:09:46 -04:00
vendor network graph: fixed minor visual artefacts 2012-06-19 17:29:32 +04:00
.foreman complete hooks for post receive 2012-01-08 13:20:20 +02:00
.gitignore gitlab rake tasks refactored 2012-04-04 01:02:54 +03:00
.rails_footnotes init commit 2011-10-09 00:36:38 +03:00
.rspec init commit 2011-10-09 00:36:38 +03:00
.travis.yml Test only 1.9.3 on travis 2012-06-17 23:05:33 +03:00
CHANGELOG Preparing to v2.5 2012-05-19 13:17:34 +03:00
config.ru init commit 2011-10-09 00:36:38 +03:00
Gemfile Add resque_spec to test queuing mail. 2012-06-20 14:09:46 -04:00
Gemfile.lock Add resque_spec to test queuing mail. 2012-06-20 14:09:46 -04:00
LICENSE init commit 2011-10-09 00:36:38 +03:00
Procfile Procfile production, resque script 2012-01-09 13:30:19 +02:00
Procfile.production preparing to v2.2 2012-02-19 12:36:16 +02:00
Rakefile init commit 2011-10-09 00:36:38 +03:00
README.md Added grit ci build status to readme 2012-06-05 20:31:09 +03:00
resque.sh only address resque works in post_receive and mailer queue 2012-06-10 17:11:34 +08:00
resque_dev.sh Send author to post hook. Display push activity to dashboard 2012-02-29 22:38:24 +02:00
VERSION Preparing to v2.5 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.