Skip to content

Commit

Permalink
You can't use File.open like that. Broken code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sinn3r committed Jan 10, 2013
1 parent 11642dc commit 2b17a04
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/features/support/test_config.rb
Expand Up @@ -5,11 +5,14 @@ class TestConfig
include Singleton include Singleton


def initialize(*args) def initialize(*args)
if @yaml_options = YAML::load(File.open(File.join(File.dirname(__FILE__),'test_config.yml')))

yml_path = File.join(File.dirname(__FILE__),'test_config.yml')
else
@yaml_options = {} if File.exists?(yml_path)
end @yaml_options = YAML::load(File.open(yml_path))
else
@yaml_options = {}
end


@options = { @options = {
"rhost" => "localhost", "rhost" => "localhost",
Expand Down

0 comments on commit 2b17a04

Please sign in to comment.