Skip to content

Commit

Permalink
I have included a failing test for a default capacity that can be ove…
Browse files Browse the repository at this point in the history
…ridden as appropriate
  • Loading branch information
Rhodine-orleans-lindsay committed Dec 13, 2019
1 parent 0ed5929 commit 7a0a7d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/airport_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a0a7d7

Please sign in to comment.