mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-11-15 19:47:58 +01:00
14 lines
298 B
Ruby
14 lines
298 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe Waterfoul::Timer do
|
||
|
subject { Waterfoul::Timer.new }
|
||
|
before { $mmu = Waterfoul::MMU.new }
|
||
|
|
||
|
describe 'divider register' do
|
||
|
it 'increments the divider register every 256 cycles' do
|
||
|
subject.tick(256)
|
||
|
expect($mmu[0xFF04]).to eq 1
|
||
|
end
|
||
|
end
|
||
|
end
|