gitlab-org--gitlab-foss/spec/services
Stan Hu 239743345a Fix GitLab Pages not refreshing upon new content
Due to autoloading and Ruby scoping, the .update file was never being
updated due to this error:

```
NoMethodError: undefined method `pages' for Projects::Settings:Module
        from /opt/gitlab/embedded/service/gitlab-rails/app/services/projects/update_pages_configuration_service.rb:50:in `pages_update_file'
        from /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/instrumentation.rb:157:in `pages_update_file'
        from (irb):6
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:110:in `start'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/console.rb:9:in `start'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:68:in `console'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
        from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.7.1/lib/rails/commands.rb:17:in `<top (required)>'
        from bin/rails:9:in `require'
```

This error was caught and discarded quietly. This fix exercises this code and fixes the scope problem.

Closes gitlab-com/infrastructure#1058
2017-02-01 23:09:12 +00:00
..
auth Allow owners to fetch source code in CI builds 2016-11-01 09:37:20 +01:00
boards Allow user to create a board list based on a group label 2016-10-19 14:58:24 -02:00
chat_names More coverage on service level 2016-11-18 10:00:40 +01:00
ci Return struct instead of multiple values 2017-01-25 14:23:47 +01:00
discussions Feature: delegate all open discussions to Issue 2016-12-05 20:55:45 +01:00
files
groups Add nested groups support to the Groups::CreateService 2016-12-26 11:56:19 +02:00
issuable Check if user can read issue before being assigned 2016-12-27 19:25:17 -02:00
issues Check if user can read issue before being assigned 2016-12-27 19:25:17 -02:00
labels Abillity to promote project labels to group labels 2017-01-31 12:50:52 +01:00
members Make access request specs explicitly enable or disable access requests as required 2016-11-11 15:45:47 +00:00
merge_requests Backport EE changes on approvals reset for closed MRs 2017-01-23 12:45:53 -02:00
milestones Optimize Event queries by removing default order 2016-10-27 20:07:11 -03:00
notes address comments 2017-01-25 10:10:05 +01:00
projects Fix GitLab Pages not refreshing upon new content 2017-02-01 23:09:12 +00:00
protected_branches
search
slash_commands Merge branch 'time-tracking-api' into 'master' 2017-01-18 18:18:13 +00:00
users Synchronize all project authorization refreshing 2017-01-16 16:37:48 -05:00
access_token_validation_service_spec.rb Convert AccessTokenValidationService into a class. 2016-12-16 16:29:32 +05:30
after_branch_delete_service_spec.rb Add test example for after branch delete service 2016-11-15 10:38:08 +01:00
compare_service_spec.rb
create_deployment_service_spec.rb Merge remote-tracking branch 'origin/master' into 22191-delete-dynamic-envs-mr 2016-10-18 17:48:27 +02:00
create_release_service_spec.rb
create_snippet_service_spec.rb
create_tag_service_spec.rb
delete_branch_service_spec.rb Remove redundant call to after branch delete service 2016-11-16 12:23:39 +01:00
delete_merged_branches_service_spec.rb Add button to delete all merged branches 2016-11-09 21:04:03 +01:00
delete_tag_service_spec.rb
delete_user_service_spec.rb
destroy_group_service_spec.rb Write a spec covering the race condition during group deletion. 2016-11-18 14:27:13 +05:30
event_create_service_spec.rb Differentiate the expire from leave event 2016-10-20 00:26:45 +00:00
git_hooks_service_spec.rb
git_push_service_spec.rb Merge branch 'feature/more-storage-statistics' into 'master' 2016-12-26 09:48:30 +00:00
git_tag_push_service_spec.rb Refactor cache refreshing/expiring 2016-11-21 15:05:13 +01:00
import_export_clean_up_service_spec.rb
notification_service_spec.rb Fix notification when global=disabled, group=watch 2017-01-30 18:21:54 +01:00
pages_service_spec.rb Active tense test coverage in pages spec 2017-02-01 22:56:50 +00:00
repair_ldap_blocked_user_service_spec.rb
repository_archive_clean_up_service_spec.rb
search_service_spec.rb Add tests for nested groups in search service and search helper 2017-01-30 17:33:49 +02:00
system_hooks_service_spec.rb Add a system hook for when a project is updated. 2017-01-26 09:09:14 -05:00
system_note_service_spec.rb Ensure autogenerated title does not cause failing spec 2017-01-27 00:50:42 +00:00
test_hook_service_spec.rb
todo_service_spec.rb Notify the user who set auto-merge when merge conflict occurs 2017-01-14 12:22:30 +03:00
update_release_service_spec.rb
update_snippet_service_spec.rb
user_project_access_changed_service_spec.rb Fix race conditions for AuthorizedProjectsWorker 2017-01-25 13:22:15 +01:00