On Mon, Aug 18, 2008 at 12:01 PM, aidy lewis <[EMAIL PROTECTED]> wrote: > Hi, > > 2008/8/18 aidy lewis <[EMAIL PROTECTED]>: >> Hi, >> >> Can anyone give me some sample syntax of using a command line switch >> in the Story Runner run method please? > > This is what I have > > def run_local_story(filename, options={}) > options = {"-fh:" => "C:/rspec_reports/#{filename}.htm"} > run File.join(File.dirname(__FILE__), "../projects/#{filename}"), options > end >
Those options don't make it to the runner, which reads the actual command line (ARGV). What I typically do is load up runner files that look like this: # stories/accounting/stories.rb with_steps_for :accounting do run 'path/to/a/story/file' end The, in a terminal: $ ruby stories/accounting/stories.rb -fh:/rspec_reports/#{filename}.htm HTH, David > However, no exception is thrown, but neither is a file created. I am > also unsure on what part of the code the html report should be > created. > > Aidy > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users