Resource type move in Resources class
This commit is contained in:
@ -1 +1,8 @@
|
||||
require "./spec_helper"
|
||||
|
||||
describe Game::Resources do
|
||||
it "should be created from hash" do
|
||||
res = Game::Resources.new({Game::Resources::Type::Crystals => 100})
|
||||
res[Game::Resources::Type::Crystals].should eq 100
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user