Pushing all changes
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user