Hackware/spec/core/model/skill_spec.cr

14 lines
343 B
Crystal

require "spec"
describe Core::Model::Skill do
it "test no requirement" do
skill = Core::Model::Skill.from_json(%({"name": "Hacking"}))
skill.name.should eq "Hacking"
end
it "test api" do
skill = Core::Model::Skill.from_json(%({"name": "Hacking"}))
skill.runtime_call("name", [] of String).should eq "Hacking"
end
end