diff options
| author | _Tradam <[email protected]> | 2021-12-30 07:33:27 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-30 07:33:27 -0500 |
| commit | 3104eaf4ca0515572aeedc114cb6095a07825d90 (patch) | |
| tree | a1feb0d69557f1a24f9884567d0d939c129c6447 /spec/system_manager_spec.rb | |
| parent | 5ef652300e71b572ca58b061610d606840ce19a9 (diff) | |
| download | FelECS-revert-12-arry.tar.gz FelECS-revert-12-arry.zip | |
Revert "Major 4.0 update (#12)"revert-12-arry
This reverts commit 5ef652300e71b572ca58b061610d606840ce19a9.
Diffstat (limited to 'spec/system_manager_spec.rb')
| -rw-r--r-- | spec/system_manager_spec.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/spec/system_manager_spec.rb b/spec/system_manager_spec.rb index 3d2e3dc..f9df439 100644 --- a/spec/system_manager_spec.rb +++ b/spec/system_manager_spec.rb @@ -1,4 +1,4 @@ -require_relative '../lib/felflame.rb' +require 'felflame' describe 'Components' do @@ -73,16 +73,6 @@ describe 'Components' do expect(second.health).to eq(init2 - (multiple * 10)) end - it 'can clear triggers from components and systems' do - @cmp0 = @component_manager.new - @system.trigger_when_added @cmp0 - expect(@cmp0.addition_triggers.length).to eq(1) - expect(@system.addition_triggers.length).to eq(1) - expect(@cmp0.delete).to be true - expect(@cmp0.addition_triggers.length).to eq(0) - expect(@system.addition_triggers.length).to eq(0) - end - it 'can trigger when a single Component is added' do @cmp0 = @component_manager.new @cmp1 = @component_manager.new health: 20 @@ -336,7 +326,7 @@ describe 'Components' do expect(@cmp0.health).to eq(10) expect(@cmp1.health).to eq(20) end - + it 'can clear addition_trigger, with component' do @cmp0 = @component_manager.new health: 10 @cmp1 = @component_manager.new health: 20 @@ -379,7 +369,7 @@ describe 'Components' do expect(@cmp0.health).to eq(10) expect(@cmp1.health).to eq(20) end - + it 'can clear removal_trigger, with component' do @cmp0 = @component_manager.new health: 10 @cmp1 = @component_manager.new health: 20 |
