wrote basic building stuff, need to impliment more in the player.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user