From 7a0a7d70223f7bc12af6590da605336111e46d31 Mon Sep 17 00:00:00 2001 From: Rhodine Date: Fri, 13 Dec 2019 15:36:43 +0000 Subject: [PATCH] I have included a failing test for a default capacity that can be overidden as appropriate --- spec/airport_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/airport_spec.rb b/spec/airport_spec.rb index d13fd0dc66..e95e2b0ce5 100644 --- a/spec/airport_spec.rb +++ b/spec/airport_spec.rb @@ -46,7 +46,8 @@ it 'raises an error when the airport is full' do airport = Airport.new plane = Plane.new - 10.times { airport.landing Plane.new } + Airport::DEFAULT_CAPACITY.times do airport.landing Plane.new + end expect { airport.landing Plane.new }.to raise_error 'Airport is full!' end end