Re: [rspec-users] description method and test failures

2008-05-14 Thread David Chelimsky
On Wed, May 14, 2008 at 1:17 AM, EAW <[EMAIL PROTECTED]> wrote: > Hi all, > > Hoping you can help. I have a project using rspec 1.1.3 and rails 2.0.2. > I've run into a small problem. Said project has a method in > application_helper.rb named "description". Whenever a spec test fails, I > see a

Re: [rspec-users] description method and test failures

2008-05-14 Thread John D. Hume
On Wed, May 14, 2008 at 2:17 AM, EAW <[EMAIL PROTECTED]> wrote: > It seems that this method is clashing with one of the methods in rspec. Is > there a workaround for this situation? It's a pain to have to rename my > method everytime I want to see a proper failure message from rspec. Not to be

Re: [rspec-users] user stories for load testing?

2008-05-14 Thread Bryan Helmkamp
Hi Rick, We're very interested in doing this at weplay (where I work). I've started refactoring webrat to support pluggable adapters, which I see being Rails, Merb (coming soon), and (most relevant to this) WWW::Mechanize. So far I just have it able to make HTTP requests, but there seem to be som

[rspec-users] Reuse steps like a method call

2008-05-14 Thread Bryan Helmkamp
If I have a step matcher defined as so: Given "a user named $username" do |username| end Is there a way to call it from another step? For example: Given "a user named $username with a blog post |username| given_a_user_named(username) # calls existing step code # create a blog post end

Re: [rspec-users] Reuse steps like a method call

2008-05-14 Thread Ben Mabey
Bryan Helmkamp wrote: If I have a step matcher defined as so: Given "a user named $username" do |username| end Is there a way to call it from another step? For example: Given "a user named $username with a blog post |username| given_a_user_named(username) # calls existing step code #

Re: [rspec-users] Testing that named_scope is defined

2008-05-14 Thread Helder Ribeiro
On Tue, May 13, 2008 at 11:50 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > Oi Helder, Opa, beleza? :) > > On May 13, 2008, at 9:14 PM, Helder Ribeiro wrote: > >> On Tue, May 13, 2008 at 9:20 PM, Pat Maddox <[EMAIL PROTECTED]> wrote: >>> >>> >>> I wonder why OP doesn't create two records, call

Re: [rspec-users] Reuse steps like a method call

2008-05-14 Thread David Chelimsky
On May 14, 2008, at 12:45 PM, Bryan Helmkamp wrote: If I have a step matcher defined as so: Given "a user named $username" do |username| end Is there a way to call it from another step? For example: Given "a user named $username with a blog post |username| given_a_user_named(username) #

Re: [rspec-users] Reuse steps like a method call

2008-05-14 Thread Zach Dennis
On Wed, May 14, 2008 at 2:24 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On May 14, 2008, at 12:45 PM, Bryan Helmkamp wrote: > > If I have a step matcher defined as so: >> >> Given "a user named $username" do |username| >> >> end >> >> Is there a way to call it from another step? For ex

Re: [rspec-users] Reuse steps like a method call

2008-05-14 Thread David Chelimsky
On May 14, 2008, at 3:07 PM, Zach Dennis wrote: On Wed, May 14, 2008 at 2:24 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: On May 14, 2008, at 12:45 PM, Bryan Helmkamp wrote: If I have a step matcher defined as so: Given "a user named $username" do |username| end Is there a way to cal

Re: [rspec-users] description method and test failures

2008-05-14 Thread EAW
I followed your advice, with one slight addition. Inside of my describe block I included the ApplicationHelper manually, so that I could call the methods in it. Everything is working fine now. Thanks for your help. e. On May 14, 2008, at 6:44 AM, David Chelimsky wrote: On Wed, May 14, 2