mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-11-15 19:47:58 +01:00
fix incorrect behavior being tested on MBC1 read disabled memory
This commit is contained in:
parent
cb787edf43
commit
4896f791fa
1 changed files with 3 additions and 2 deletions
|
@ -64,8 +64,9 @@ describe Waterfoul::MBC::MBC1 do
|
|||
end
|
||||
|
||||
context 'when ram is disabled' do
|
||||
it 'raises an error' do
|
||||
expect { subject[0xA001] = 0x1 }.to raise_error RuntimeError
|
||||
it 'does not store value into ram' do
|
||||
subject[0xA001] = 0x1
|
||||
expect(subject[0xA001]).to eq 0xFF
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue