about summary refs log tree commit diff
path: root/spec/controllers
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-05-15 11:12:17 -0700
committerReverite <github@reverite.sh>2019-05-15 11:12:17 -0700
commit4cea89bf2e9ce7f73fccfc637191b1e039ad25ee (patch)
treecc559ad868e13d934ff539bd2da836ddad3ea5fc /spec/controllers
parentcdb159f27e2aeb2cf3bb184ac20b7056b013f714 (diff)
parentc1cf8c1636e0a639cced585f0cb234547a64d417 (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/admin/domain_blocks_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/admin/domain_blocks_controller_spec.rb b/spec/controllers/admin/domain_blocks_controller_spec.rb
index 2a8675c21..fb23658c0 100644
--- a/spec/controllers/admin/domain_blocks_controller_spec.rb
+++ b/spec/controllers/admin/domain_blocks_controller_spec.rb
@@ -63,9 +63,9 @@ RSpec.describe Admin::DomainBlocksController, type: :controller do
       service = double(call: true)
       allow(UnblockDomainService).to receive(:new).and_return(service)
       domain_block = Fabricate(:domain_block)
-      delete :destroy, params: { id: domain_block.id, domain_block: { retroactive: '1' } }
+      delete :destroy, params: { id: domain_block.id }
 
-      expect(service).to have_received(:call).with(domain_block, true)
+      expect(service).to have_received(:call).with(domain_block)
       expect(flash[:notice]).to eq I18n.t('admin.domain_blocks.destroyed_msg')
       expect(response).to redirect_to(admin_instances_path(limited: '1'))
     end