gitlab-org--gitlab-foss/spec/services/projects
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
..
autocomplete_service_spec.rb
create_service_spec.rb
destroy_service_spec.rb
download_service_spec.rb
enable_deploy_key_service_spec.rb
fork_service_spec.rb
housekeeping_service_spec.rb
import_service_spec.rb
participants_service_spec.rb
transfer_service_spec.rb Rename pages namespace or project path when changed 2017-01-31 22:53:56 +00:00
unlink_fork_service_spec.rb
update_pages_configuration_service_spec.rb Fix GitLab Pages not refreshing upon new content 2017-02-01 23:09:12 +00:00
update_pages_service_spec.rb Fixed Rubocop deprecation warnings 2017-02-01 00:14:44 +00:00
update_service_spec.rb Add a spec and actually display the flash notice 2017-01-16 10:57:15 -05:00
upload_service_spec.rb