Sha256: 6ea9a1e938f6ef4b7a9244cc6a932070c17ee93b901ccf16b018aa200f022413

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

require File.join(File.dirname(__FILE__),'helper')

describe 'A new resource manager' do
  before do
    @res_man = ResourceManager.new :wrapped_screen => stub(:screen => :fake_gosu)
  end

  it 'should load an actor image' do
    @res_man.expects(:load_image).with("string.png").returns(:surf)
    @res_man.load_actor_image("FoopyPants").should == :surf
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gamebox-0.3.4 spec/resource_manager_spec.rb
gamebox-0.3.3 spec/resource_manager_spec.rb
gamebox-0.3.2 spec/resource_manager_spec.rb