jacius / rebirth

High-level game framework, built on Rubygame & OpenGL. (On hold)

This URL has Read+Write access

jacius (author)
Wed Feb 25 22:56:58 -0800 2009
commit  5aaeedc86182aecbff26ed71178805826127bd08
tree    8c79ccecc4ecf93d65e5af486064880b084de9a8
parent  ef6da6925979b82eaf4cd3f7095ec16f5ec7b20a
rebirth / spec / shape_spec.rb
100644 29 lines (19 sloc) 0.554 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Prefer local library over installed version.
$:.unshift( File.join( File.dirname(__FILE__), "..", "lib" ) )
 
require 'rebirth'
include Rebirth
 
need { "shared_drawable_spec" }
need { "shared_hastransform_spec" }
 
describe Shape do
 
  before :each do
    @class = Shape
  end
 
  it_should_behave_like "a drawable"
  it_should_behave_like "an object that has transform"
 
  it "should include HasTransform" do
    Shape.new.should be_kind_of( HasTransform )
  end
 
  it "should include Drawable" do
    Shape.new.should be_kind_of( Drawable )
  end
 
end