Ruby - Testing with RSpec and Minitest
What is wrong with this test code?
let(:array) { [] }
before { array << 1 }
it 'has one element' do
expect(array.size).to eq(1)
end
it 'is empty initially' do
expect(array).to eq([])
end