我安装了minitest,在我的集成文件夹中运行以下代码:
describe "some description" do
it "should do something" do
end
end
它有效。但是如果我想实现js如下,则会抛出错误:
describe "as a student I want a working blog so people can post" do
it "should do something", js: true do
end
end
ArgumentError:错误的参数数量(2为0..1)
由于
答案 0 :(得分:0)
将您的陈述更改为:
describe "as a student I want a working blog so people can post", js: true do
it "should do something" do
end
end
注意:js:true选项现在位于describe块中。 资料来源:Capybara