diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2019-05-31 14:16:54 +0000 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2019-05-31 14:16:54 +0000 |
commit | 9a8955d3c06c23cfc95914254ec77cc78e2cf6b5 (patch) | |
tree | 587a162eb589d187596a31bf12e4bdc04b5558e0 /spec/tasks | |
parent | 3ef47ac83409cc7e00f7ef80d7cae0434e29ccd2 (diff) | |
parent | 951afba624ed042e818f0febc702b5abbe3fec91 (diff) | |
download | gitlab-ce-9a8955d3c06c23cfc95914254ec77cc78e2cf6b5.tar.gz |
Merge branch 'gitaly-version-v1.43.0' into 'master'
Upgrade Gitaly to v1.43.0
See merge request gitlab-org/gitlab-ce!28867
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/shell_rake_spec.rb | 18 | ||||
-rw-r--r-- | spec/tasks/tokens_spec.rb | 4 |
2 files changed, 3 insertions, 19 deletions
diff --git a/spec/tasks/gitlab/shell_rake_spec.rb b/spec/tasks/gitlab/shell_rake_spec.rb index a9d14070177..c3e912b02c5 100644 --- a/spec/tasks/gitlab/shell_rake_spec.rb +++ b/spec/tasks/gitlab/shell_rake_spec.rb @@ -7,14 +7,8 @@ describe 'gitlab:shell rake tasks' do stub_warn_user_is_not_gitlab end - after do - TestEnv.sabotage_gitlab_shell_hooks - end - describe 'install task' do - it 'invokes create_hooks task' do - expect(Rake::Task['gitlab:shell:create_hooks']).to receive(:invoke) - + it 'installs and compiles gitlab-shell' do storages = Gitlab::GitalyClient::StorageSettings.allow_disk_access do Gitlab.config.repositories.storages.values.map(&:legacy_disk_path) end @@ -24,14 +18,4 @@ describe 'gitlab:shell rake tasks' do run_rake_task('gitlab:shell:install') end end - - describe 'create_hooks task' do - it 'calls gitlab-shell bin/create_hooks' do - expect_any_instance_of(Object).to receive(:system) - .with("#{Gitlab.config.gitlab_shell.path}/bin/create-hooks", - *Gitlab::TaskHelpers.repository_storage_paths_args) - - run_rake_task('gitlab:shell:create_hooks') - end - end end diff --git a/spec/tasks/tokens_spec.rb b/spec/tasks/tokens_spec.rb index 555a58e9aa1..4188e7caccb 100644 --- a/spec/tasks/tokens_spec.rb +++ b/spec/tasks/tokens_spec.rb @@ -8,13 +8,13 @@ describe 'tokens rake tasks' do end describe 'reset_all_email task' do - it 'invokes create_hooks task' do + it 'changes the incoming email token' do expect { run_rake_task('tokens:reset_all_email') }.to change { user.reload.incoming_email_token } end end describe 'reset_all_feed task' do - it 'invokes create_hooks task' do + it 'changes the feed token for the user' do expect { run_rake_task('tokens:reset_all_feed') }.to change { user.reload.feed_token } end end |