wrote basic building stuff, need to impliment more in the player.
This commit is contained in:
@@ -61,6 +61,13 @@ RSpec.describe Planet do
|
||||
end
|
||||
end
|
||||
|
||||
describe '#info_update' do
|
||||
it 'returns the correct data about the planet to the player' do
|
||||
data = planet.info_update
|
||||
expect(data.keys).to eq(['id', 'position'])
|
||||
end
|
||||
end
|
||||
|
||||
describe '#save_to_file' do
|
||||
it 'saves the planet to a file' do
|
||||
expect{planet.save_to_file}.to_not raise_error
|
||||
|
||||
Reference in New Issue
Block a user