Re: [rspec-users] Executing multiple rspec scripts

2008-07-12 Thread Robert Stagner
Wow!! That is also very, very helpful. I was able to get rake to work as described in an earlier posting, but not without several hours of tinkering and reading the RSpec and Rake documentation. Your solution is certainly much more direct. Thanks. On Sat, Jul 12, 2008 at 5:34 PM, Jim Morris <[EM

Re: [rspec-users] rspec render :update

2008-07-12 Thread Zach Dennis
On Fri, Jul 11, 2008 at 1:04 PM, Reggie Mr. <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm having trouble with rspec 1.1.4 and rjs > > In the controller: > render :update do |page| >page << 'added text' > end > > render :update do |page| >page.replace_html :divid :partial => 'ap

Re: [rspec-users] Executing multiple rspec scripts

2008-07-12 Thread Jim Morris
Another way to do it instead of the Rake method is what I do... I create a suite.rb in the spec folder with this... # suite.rb - run all my tests in this folder and below if __FILE__ == $0 dir = File.dirname(__FILE__) tests= Dir["#{dir}/**/test_*.rb"] # anything named test_*.rb tests.conca

Re: [rspec-users] rspec render :update

2008-07-12 Thread Matt Darby
On Jul 11, 2008, at 1:04 PM, Reggie Mr. wrote: Hi all, I'm having trouble with rspec 1.1.4 and rjs response.should have_rjs #this should be successful for any rjs request; but fails response.should have_rjs(:replace_html) #no luck I have tried mocking the page object, but that also fails.