Sha256: b46384e346426abcf39328639175a922ca8342f3edce8f91aefecab82f6d8e46

Contents?: true

Size: 349 Bytes

Versions: 7

Compression:

Stored size: 349 Bytes

Contents

require 'helper'

describe SpatialTreeStagehand do
  subject { SpatialTreeStagehand.new :stage, {} }
  let(:tree) { stub('tree') }

  before do
    AABBTree.stubs(:new).returns tree
  end

  describe "#items" do
    it "returns all the items" do
      tree.stubs(:items).returns(key: :value)
      subject.items.should == [:key]
    end
  end


end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gamebox-0.4.0 spec/stagehands/spatial_tree_stagehand_spec.rb
gamebox-0.4.0.rc11 spec/stagehands/spatial_tree_stagehand_spec.rb
gamebox-0.4.0.rc5 spec/stagehands/spatial_tree_stagehand_spec.rb
gamebox-0.4.0.rc4 spec/stagehands/spatial_tree_stagehand_spec.rb
gamebox-0.4.0.rc3 spec/stagehands/spatial_tree_stagehand_spec.rb
gamebox-0.4.0.rc2 spec/stagehands/spatial_tree_stagehand_spec.rb
gamebox-0.4.0.rc1 spec/stagehands/spatial_tree_stagehand_spec.rb