<!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=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>&nbsp;</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>&nbsp;</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.&nbsp; 
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>&nbsp;</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.&nbsp; 
However, this limits me in my output formats.&nbsp; 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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff 
size=2>$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == 
__FILE__&nbsp;&nbsp; #set the local dir path</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial size=2><FONT 
color=#0000ff>describe "Project name" do<BR>&nbsp; before(:all) 
do<BR>&nbsp;&nbsp;&nbsp; @browser = Watir::IE.new<BR>&nbsp;&nbsp;&nbsp; 
@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>&nbsp; end #begin</FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff size=2>&nbsp; 
## Basic page validation<BR>&nbsp; it "should have the logo" 
do<BR>&nbsp;&nbsp;&nbsp; @browser.image(:src, /cp_logo.gif/).should_not 
be_nil<BR>&nbsp; end #logo</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff size=2>&nbsp; 
it "should have login/logout text" do<BR>&nbsp;&nbsp;&nbsp; login = 
@browser.table(:index, 1)[2][1].text<BR>&nbsp;&nbsp;&nbsp; login.should =~ 
(/Log/)<BR>&nbsp; end #login/logout</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=459201019-17092007><FONT face=Arial color=#0000ff size=2>&nbsp; 
after(:all) do<BR>&nbsp;&nbsp;&nbsp; @browser.close<BR>&nbsp; end #after<BR>end 
#Project name</FONT></SPAN></DIV></BODY></HTML>