如果我有
let(:analysis_file_1) { "./spec/test_files/analysis1.json" }
...
it "should have message x" do
我想在“it”语句中打印出 analysis_file_1 的值。
但这不起作用:
it "#{analysis_file_1} should have message x" do
它出错了
in `block in <top (required)>': undefined local variable or method `analysis_file_1' for #<Class:0x007f865a219c00> (NameError)
有没有办法在 it 消息中使用 let 定义的变量?