1
如何產生的呢從陣列Rspec的產生「它做的」從陣列
describe "some test" do
let(:some) { generated_array }
# raise error - undefined local variable or method
some.each do |key|
it "#{key} test" do
true
end
end
# will work
[1,2,3].each do |key|
...
end
測試它如何使用RSpec進行realyzed?