[rspec-users] How to do HTTP Basic Authentication in stories with WebRat?

2008-07-16 Thread Christopher Bailey
I have a controller that has simple HTTP basic authentication protecting a bunch of its actions. How can I authentication/get around this when creating stories for this controller that I'm driving via WebRat? From what I can tell, using "visits" won't work, although I could directly do "get" and

Re: [rspec-users] How to write specification for the *base* class API?

2008-07-16 Thread Ashley Moran
On Jul 15, 2008, at 3:24 pm, Pat Maddox wrote: This defines the contract of an Account abstraction... you can imagine different account types that might implement it in a way that the actual dollar values differ. For example, fees may be applied to one kind of account but not another. Anyone

[rspec-users] license to post rspec example

2008-07-16 Thread aidy lewis
Hi, Would I need to use a license or give credit if I posted on OpenQA an example of Rspec and Watir (with my own AUT object model)? Aidy ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] '$' placeholder naming can confuse your runner

2008-07-16 Thread Paolo Dona
It is the common prefix, not the underscore. With $n and $nnn or $ntotal still fails. Paolo On Jul 16, 4:40 pm, "Pat Maddox" <[EMAIL PROTECTED]> wrote: > What about when you make it $ntotal? Is it the common first letter or > the underscore? > > Pat > > On 7/16/08, Paolo Dona <[EMAIL PROTECTED]>

Re: [rspec-users] '$' placeholder naming can confuse your runner

2008-07-16 Thread Pat Maddox
What about when you make it $ntotal? Is it the common first letter or the underscore? Pat On 7/16/08, Paolo Dona <[EMAIL PROTECTED]> wrote: > Hi guys, I'm facing a strange behavior that smells like a bug. > > consider this scenario: > > Scenario: I'm cool > Given that I am cool 4 times out of

[rspec-users] '$' placeholder naming can confuse your runner

2008-07-16 Thread Paolo Dona
Hi guys, I'm facing a strange behavior that smells like a bug. consider this scenario: Scenario: I'm cool Given that I am cool 4 times out of 7 and this step: Given("that I am cool $n times out of $n_total") do |n, n_total| ... end When running my story, this step is considered as PENDING.

[rspec-users] hot sell shoes,jeans,shirt,clothes,cap,watch

2008-07-16 Thread Ming Li
hi freind welcome to www.007trader.com thanks Attachments: http://www.ruby-forum.com/attachment/2402/200852485255_.jpg -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/lis

Re: [rspec-users] Testing upload via web services

2008-07-16 Thread David Chelimsky
On Wed, Jul 16, 2008 at 6:07 AM, Nicholas Wieland <[EMAIL PROTECTED]> wrote: > Hi *, > I need to write a web service that accepts file uploads (even large ones). > My WS is REST based, so I have a create method that accepts only POST. > My problem is passing the file to the method, so if someone al

[rspec-users] Testing upload via web services

2008-07-16 Thread Nicholas Wieland
Hi *, I need to write a web service that accepts file uploads (even large ones). My WS is REST based, so I have a create method that accepts only POST. My problem is passing the file to the method, so if someone already solved this problem please let me know. My method is like this: def c