Pushing all changes

This commit is contained in:
2025-12-19 09:16:48 -07:00
parent b8f54b44a3
commit 4737531805
7 changed files with 105 additions and 13 deletions
+16
View File
@@ -0,0 +1,16 @@
# Nahtan Hinton 3 Oct 2025
require './player'
RSpec.describe Player do
let(:player_1) { Player.new('tester 01') }
describe '#initialize' do
it 'sets the player name' do
expect(player_1.instance_variable_get(:@name)).to eq 'tester 01'
end
it 'gives initial resources' do
expect(player_1.instance_variable_get(:@resources)).to eq ({:ships => 10, :metal => 100})
end
end
end