Call `control!` instead of `check`

Akinori MUSHA 9 年之前
父节点
当前提交
d6264bcdc4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spec/support/shared_examples/agent_controller_concern.rb

+ 1 - 1
spec/support/shared_examples/agent_controller_concern.rb

@@ -142,7 +142,7 @@ shared_examples_for AgentControllerConcern do
142 142
       agent.save!
143 143
       old_options = agents(:bob_data_output_agent).options
144 144
 
145
-      agent.check
145
+      agent.control!
146 146
 
147 147
       expect(agent.control_targets.reload).to all(satisfy { |a| a.options['template'] && a.options['template']['item'] && (a.options['template']['item']['title'] == 'changed') })
148 148
       expect(agents(:bob_data_output_agent).reload.options).to eq(old_options.deep_merge(agent.options['configure_options']))