Re: [rspec-users] MockExpectationError with restful-authentication

2009-01-02 Thread David Chelimsky
On Thu, Jan 1, 2009 at 1:40 PM, Mark A. Richman wrote: > Thanks that helped! Now I'm getting these errors...any ideas? Looks like > something cookie related? > > http://pastie.org/350148 Only the first 2 look cookie related to me. The rest seem like typos - either things that you changed after ge

Re: [rspec-users] MockExpectationError with restful-authentication

2009-01-02 Thread Mark A. Richman
Thanks! That seems to have knocked out all but 4 errors. I'll keep banging away...this is fun! :) Best, Mark On Fri, Jan 2, 2009 at 5:00 AM, David Chelimsky wrote: > On Thu, Jan 1, 2009 at 1:40 PM, Mark A. Richman > wrote: > > Thanks that helped! Now I'm getting these errors...any ideas? Looks

[rspec-users] [ANN] RSpactor 1.0.1

2009-01-02 Thread rubyphunk
Hi all, I'm happy to announce the first public RSpactor release 1.0.1. RSpactor is an autotest/autospec like Mac OS X 10.5 gui application that takes care of your rspec examples. It watches for changes and runs these files. You can download 1.0.1 here: http://rspactorapp.com/assets/downloads/rs

[rspec-users] How to spec a controller method that involves an rjs redirect

2009-01-02 Thread Nasir Jamal
Hi everyone, What is the best way to spec a controller method that involves an rjs redirect? Something like this def index   url_to = @parent ? auction_bids_path(@parent)  : auctions_path   render :update do |page|     page.redirect_to(url_to)   end end I tried  response.should have_rjs for t

[rspec-users] How to write specs for already written parts of an application?

2009-01-02 Thread waseem ahmad
Hi, What should be my approach to write specs for the parts of an applications which are already written? How should I start writing tests for those models, controllers which were not generated using rspec_controller or rspec_model? Would you please point me to some tutorials for writing RSpec te

Re: [rspec-users] How to write specs for already written parts of an application?

2009-01-02 Thread David Chelimsky
On Fri, Jan 2, 2009 at 11:54 AM, waseem ahmad wrote: > Hi, > What should be my approach to write specs for the parts of an applications > which are already written? How should I start writing tests for those > models, controllers which were not generated using rspec_controller or > rspec_model?

[rspec-users] Cucumber namespace problem

2009-01-02 Thread Emmanuel Pinault
Hi I am having an issue with Cucumber where I am writing in one files some steps where rspec matcher do not seem to be accessible. So I have a file with my steps written like this require 'steputils' Given "some step description 1 " do SomeClass.post(args) end Given "some step des

Re: [rspec-users] Cucumber namespace problem

2009-01-02 Thread aslak hellesoy
On Fri, Jan 2, 2009 at 7:20 PM, Emmanuel Pinault wrote: > Hi > > I am having an issue with Cucumber where I am writing in one files some > steps where rspec matcher do not seem to be accessible. > > So I have a file with my steps written like this > > require 'steputils' > > Given "some step des

Re: [rspec-users] Cucumber namespace problem

2009-01-02 Thread Peter Jaros
On Fri, Jan 2, 2009 at 1:20 PM, Emmanuel Pinault wrote: > So I have a file with my steps written like this > > require 'steputils' > > Given "some step description 1 " do >SomeClass.post(args) > end > > Given "some step description 2 that is slighty different for better > readability "

Re: [rspec-users] Cucumber namespace problem

2009-01-02 Thread Emmanuel Pinault
I think I found a solution to my problem. in the Steputils class, instead of including, I perform an extend on Spec::Matcher so my class look like class Steputils extend Spec::Matchers def self.post(args) args.should_not be_empty end end Now all the

Re: [rspec-users] Cucumber namespace problem

2009-01-02 Thread Emmanuel Pinault
Sorry, I made up the example to explain my problem but yes, it should be Steputils. post in each of the steps. But the problem was calling a spec matcher within that class. My solution to get it i to work is to extend my class with Spec::Matcher Thanks Emmanuel On Jan 2, 2009, at 10:45 AM

[rspec-users] Testing Framework Survey

2009-01-02 Thread Yehuda Katz
In the interest of collecting some demographic information on the Rails community, Matt (Aimonetti, Rails evangelist) put together a poll of testing framework usage. Please vote at http://twtpoll.com/zhh2fm. Thanks! ___ rspec-users mailing list rspec-use

Re: [rspec-users] Cucumber namespace problem

2009-01-02 Thread aidy lewis
Hi Aslak, 2009/1/2 aslak hellesoy : > Did you require 'spec' in your support/env.rb file? Is it now a standard to put the env.rb in the 'support' folder? Mine is in the 'steps' folder? Regards Aidy ___ rspec-users mailing list rspec-users@rubyforge.o

Re: [rspec-users] Cucumber namespace problem

2009-01-02 Thread David Chelimsky
On Fri, Jan 2, 2009 at 2:04 PM, aidy lewis wrote: > Hi Aslak, > > 2009/1/2 aslak hellesoy : > >> Did you require 'spec' in your support/env.rb file? > > Is it now a standard to put the env.rb in the 'support' folder? Mine > is in the 'steps' folder? That's the direction, yes. features/step_defin

Re: [rspec-users] Cucumber namespace problem

2009-01-02 Thread aslak hellesoy
On Fri, Jan 2, 2009 at 9:11 PM, David Chelimsky wrote: > On Fri, Jan 2, 2009 at 2:04 PM, aidy lewis > wrote: > > Hi Aslak, > > > > 2009/1/2 aslak hellesoy : > > > >> Did you require 'spec' in your support/env.rb file? > > > > Is it now a standard to put the env.rb in the 'support' folder? Mine >

[rspec-users] Getting heckled by Heckle?

2009-01-02 Thread Sebastian W.
Hello RSpec folks, I'm not sure if I'm doing something wrong with the Heckle integration in RSpec? I go to heckle my spec, and everything seems to start out okay. But then something weird happens: 3 mutations remaining... 2 mutations remaining... 1 mutations remaining... 1 mutations remaining...