method

let

ruby latest stable - Class: MiniTest::Spec::DSL

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

let(name, &block)
public

Essentially, define an accessor for name with block.

Why use let instead of def? I honestly don’t know.