Added symlink check to load_config.

This commit is contained in:
ethicalhack3r
2013-02-24 15:44:24 +01:00
parent 52b7aba348
commit 3c6292e9b4
2 changed files with 13 additions and 2 deletions

View File

@@ -200,7 +200,14 @@ describe Browser do
# TODO
describe '#load_config' do
it 'should raise an error if file is a symlink' do
symlink = './rspec_symlink'
browser = Browser.instance
File.symlink('./testfile', symlink)
expect { browser.load_config(symlink) }.to raise_error
File.unlink(symlink)
end
end
describe '#merge_request_params without proxy' do