summaryrefslogtreecommitdiffhomepage
path: root/tests/felflame_test.rb
blob: debb6f904585ec40d0669f8bff2e12efc9a91ecf (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'minitest/autorun'
require_relative '_test_helper.rb'

require_relative '../felflame.rb'

describe 'Entities' do
  before do
  end

  it 'cant find constant' do
    assert_raises(NameError, 'uninitialized constant DoesntExist') {
      FelFlame::DoesntExist
    }
  end

  it 'can\'t find method' do
    assert_raises(NoMethodError) {
      FelFlame.wrong
    }
  end

  it 'FelFlame aliased to FF' do
    _(FF).must_equal FelFlame
  end

  it 'Entities aliased to Ent' do
    _(FF::Ent).must_equal FelFlame::Entities
  end

  it 'Components aliased to Cmp' do
    _(FF::Cmp).must_equal FelFlame::Components
  end

  it 'Systems aliased to Sys' do
    _(FF::Sys).must_equal FelFlame::Systems
  end

  it 'Scenes aliased to Scn' do
    _(FF::Scn).must_equal FelFlame::Scene
  end

  it 'Stage aliased to Stg' do
    _(FF::Stg).must_equal FelFlame::Stage
  end
end