Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 356 Bytes
require_relative "helper"
describe Screen do
let(:screen) { Class.new { include Screen }.new }
it 'should blit on SDL' do
sprite = stub(Sprite)
surface = stub(SDL::Surface)
sprite.stub!(:sprite).and_return(surface)
SDL::Surface.should_receive(:blit).with(surface, 0, 0, 0, 0, screen, 10, 20)
screen.draw(sprite, 10, 20)
end
end