我的规格是这样的:
Unused parameters passed to Capybara::Queries::SelectorQuery : ["/admin/diseases/913"]
当我运行规范时,它会在控制台中返回警告:
data = [1, 2, 3, 4, 5]
operations = {
"+": lambda x,y: (value+y for value in x),
"-": lambda x,y: (value-y for value in x),
"*": lambda x,y: (value*y for value in x),
"/": lambda x,y: (value/y for value in x),
}
calculations = (
(key, val, oper(data, val))
for key, oper in sorted(operations.items())
for val in data
)
我该如何解决这个问题?
答案 0 :(得分:23)
expect(page).to have_link('Delete', href: admin_disease_path(disease))