wrote basic building stuff, need to impliment more in the player.

This commit is contained in:
2026-01-12 11:36:21 -07:00
parent 6e914467ed
commit eb161e0f2e
14 changed files with 815 additions and 175 deletions
+2
View File
@@ -10,7 +10,9 @@ RSpec.describe Ship do
expect(ship.owner).to eq 'nathan'
expect(ship.position).to eq [0, 2, 4]
end
end
describe '#validate_creation' do
it 'Fails to create a ship when the name is invalid' do
expect{Ship.new('nathan', 0, 2, 4, 'billy bob joe')}.to raise_error ShipError, "invalid ship name 'billy bob joe'"
end