<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=127212613-20092007><FONT face=Arial
color=#0000ff size=2>One more try?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=127212613-20092007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=127212613-20092007><FONT face=Arial
color=#0000ff size=2>I just want the script to save the rspec output to an html
file when the script is run. In this case, the script will be run from
SciTE using F5, rather than by command line.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=127212613-20092007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=127212613-20092007><FONT face=Arial
color=#0000ff size=2>Is there a way to specify this within the ruby
script?</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rspec-users-bounces@rubyforge.org
[mailto:rspec-users-bounces@rubyforge.org] <B>On Behalf Of </B>Adam
Reed<BR><B>Sent:</B> Tuesday, September 18, 2007 10:20 AM<BR><B>To:</B>
rspec-users@rubyforge.org<BR><B>Subject:</B> [rspec-users] FW: Specifying spec
and output format inline?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=541361915-18092007><FONT face=Arial
color=#0000ff size=2>Anyone have any advice on this one?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=541361915-18092007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=541361915-18092007><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=541361915-18092007><FONT face=Arial
color=#0000ff size=2>Adam</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rspec-users-bounces@rubyforge.org
[mailto:rspec-users-bounces@rubyforge.org] <B>On Behalf Of </B>Adam
Reed<BR><B>Sent:</B> Monday, September 17, 2007 2:14 PM<BR><B>To:</B>
rspec-users@rubyforge.org<BR><B>Subject:</B> [rspec-users] Specifying spec and
output format inline?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial size=2>Howdy from Austin,
TX.</FONT></SPAN></DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial size=2>I'm new to rspec,
and am currently using it with the Watir testing library for web testing.
I'm moving along at an ok pace so far, but I had a question.</FONT></SPAN></DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial size=2>I just realized I
could require 'spec' and forego running scripts from the command line.
However, this limits me in my output formats. Is there a way that I can
specify which format to use and where to save it inside the
script?</FONT></SPAN></DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial size=2>I've included the
full script below.</FONT></SPAN></DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial
size=2>Adam</FONT></SPAN></DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff
size=2>$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 ==
__FILE__ #set the local dir path</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff
size=2>require 'watir'<BR>require 'spec'</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial size=2><FONT
color=#0000ff>describe "Project name" do<BR> before(:all)
do<BR> @browser = Watir::IE.new<BR>
@browser.goto "</FONT><A
href="http://localhost:8080/admin_frnPkg_add.html"><FONT
color=#0000ff>http://localhost:8080/admin_frnPkg_add.html</FONT></A><FONT
color=#0000ff>"<BR> end #begin</FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff size=2>
## Basic page validation<BR> it "should have the logo"
do<BR> @browser.image(:src, /cp_logo.gif/).should_not
be_nil<BR> end #logo</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff size=2>
it "should have login/logout text" do<BR> login =
@browser.table(:index, 1)[2][1].text<BR> login.should =~
(/Log/)<BR> end #login/logout</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff size=2>
after(:all) do<BR> @browser.close<BR> end #after<BR>end
#Project name</FONT></SPAN></DIV></BODY></HTML>