Skip to content

Commit

Permalink
fix incorrect behavior being tested on MBC1 read disabled memory
Browse files Browse the repository at this point in the history
  • Loading branch information
Colby Swandale committed Sep 26, 2016
1 parent cb787ed commit 4896f79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/mbc/mbc1_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@
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
Expand Down

0 comments on commit 4896f79

Please sign in to comment.