4 ms·
rspec or minitest? ;-) Could rspecs 'expect change' idiom be the difference? I find that reducing assertions per spec where I can a good guideline. E.g. combin
by mollerhoj 4y ago
rspec or minitest? ;-) Could rspecs 'expect change' idiom be the difference?
I find that reducing assertions per spec where I can a good guideline. E.g. combining expect(foo['a']).to eq(1) and expect(foo['b']).to eq(2) into expect(foo).to include('a' => 1, 'b' => 2)
yields better error messages.