Ruby - Capybara - ArgumentError: invalid keys

Ruby - Capybara - ArgumentError: invalid keys

我正在执行代码,验证输入是否被禁用,但出现错误。

代码

before(:each) do
    visit 'https://training-wheels-protocol.herokuapp.com/dynamic_controls'
end

it 'quando habilita o campo' do
    res = page.has_field? 'movie', disable: true
    puts res
end 

错误

 ArgumentError:
   invalid keys :disable, should be one of :count, :minimum, :maximum, :between, :text, :id, :class, :style, :visible, :exact, :exact_text, :normalize_ws, :match, :wait, :filter_set, :checked, :unchecked, :disabled, :multiple, :readonly, :with, :type, :name, :placeholder
 # ./spec/dynamic_control_spec.rb:8:in `block (2 levels) in <top (required)>'

有人可以帮帮我吗?

错误消息告诉您哪些选项可以有效传递给 has_field?。您应该传递 disabled: true 而不是 :disable.