From: Mateusz Tybura Date: 2008-08-19T01:26:45+09:00 Subject: Re: command line options hash aidy wrote: > Hi, > > I have an options hash map as a run method's second parameter > > I am currently doing this > > run File.join(File.dirname(__FILE__), "../projects/#{filename}", {"- > fh:" => "C:/rspec_reports/#{filename}.htm"}) > > But I am recieving this error > > `join': can't convert Hash into String (TypeError) > > Could anyone give me the correct syntax please? > > Aidy Try this: run File.join(File.dirname(__FILE__), "../projects/#{filename}", "- fh: => C:/rspec_reports/#{filename}.htm") -- Posted via http://www.ruby-forum.com/.