gitlabhq/spec/requests
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
..
admin Disable observers in specs. Enable only when observer is under test. 2012-06-20 14:09:46 -04:00
commits_notes_spec.rb Fixed specs. Some css fixes 2012-03-25 19:44:29 +03:00
commits_spec.rb Compare view for commits 2012-02-06 22:32:04 +02:00
dashboard_issues_spec.rb Bootstrap: test fixes 2012-01-30 00:43:14 +02:00
dashboard_merge_requests_spec.rb Bootstrap: Issues, Merge Requests, SSH Key completed 2012-01-29 23:59:12 +02:00
dashboard_spec.rb Dashboard refactoring: 2012-06-12 23:13:42 +03:00
file_blame_spec.rb New Feature: Git Blame for file 2012-05-17 19:11:45 +03:00
hooks_spec.rb use ffaker gem 2012-05-29 17:35:34 +05:00
issues_notes_spec.rb Fixed specs. Some css fixes 2012-03-25 19:44:29 +03:00
issues_spec.rb Disable observers in specs. Enable only when observer is under test. 2012-06-20 14:09:46 -04:00
keys_spec.rb Bootstrap: test fixes 2012-01-30 00:43:14 +02:00
last_push_widget_spec.rb fix broken spec 2012-06-13 05:36:51 -07:00
merge_requests_spec.rb Fixed migration, test for MR 2012-03-15 19:39:03 +02:00
milestones_spec.rb fixed tests 2012-04-09 01:29:15 +03:00
profile_spec.rb Password & token split up, icon to button for top panel 2012-05-19 12:25:56 +03:00
projects_deploy_keys_spec.rb projects link added. security specs added 2012-01-19 09:27:23 +02:00
projects_security_spec.rb Dashboard refactoring: 2012-06-12 23:13:42 +03:00
projects_spec.rb Dashboard refactoring: 2012-06-12 23:13:42 +03:00
projects_tree_spec.rb Rspec test repo replaced.\nMerge Requests improved 2012-03-13 23:54:49 +02:00
projects_wall_spec.rb Fixed specs. Some css fixes 2012-03-25 19:44:29 +03:00
repositories_spec.rb Rspec test repo replaced.\nMerge Requests improved 2012-03-13 23:54:49 +02:00
search_spec.rb fix typo in spec file name 2012-05-29 17:11:55 +05:00
snippets_spec.rb Usability & design improvements 2012-02-18 14:12:48 +02:00
team_members_spec.rb [Tests] Update team member permission 2012-05-27 20:52:40 +03:00
user_security_spec.rb clean-up code 2011-10-26 18:46:25 +05:00
wikis_spec.rb wiki: rspec 2012-02-21 20:18:06 +03:00