Use neater be_between which is also inclusive, since 1024 is unprivileged and 65535 is valid

This commit is contained in:
John Barker 2011-07-06 20:36:30 +08:00
parent 3d39b59071
commit 88d4a6aa65
1 changed files with 1 additions and 2 deletions

View File

@ -12,8 +12,7 @@ describe Capybara::Driver::Webkit::Browser do
end
it 'returns a port in the allowed range' do
should > 0x400
should < 0xffff
should be_between 0x400, 0xffff
end
end