It is best to use the "let" I found.
e.g. (using minitest/spec)
describe "my amazing test" do
let(:reader) { PolicyDataReader.new(Time.now) }
let(:data) {reader.parse}
it "should parse" do
transaction = data[:transaction]
transaction.must_equal true
end
end
minitest/spec
gem 'minitest', require: ['minitest/autorun', 'minitest/spec']
Gemfile