Re: [rspec-users] Keep getting respond_to? errors

2008-08-13 Thread Fischer, Daniel
Any fix on this yet? On Sat, Aug 9, 2008 at 8:33 AM, Jd Roberts [EMAIL PROTECTED] wrote: Are you running under drb? Autotest? What version of rspec? rails? I'm almost certain this is a rails loading bug...Are you requiring anywhere? What is the value of config.cache_classes in your

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread Joseph Wilk
It looks like a nice shortcut for those times when you are registering simple one-off listeners. While it does provide a nice shortcut I can see reasons why that shortcut might be bad(in some cases). Separating registering and implementation can be a good thing. *Split the logic. *Organise

Re: [rspec-users] return code question

2008-08-13 Thread David Chelimsky
On Tue, Aug 12, 2008 at 1:22 PM, Ben Fyvie [EMAIL PROTECTED] wrote: We are trying to automate the running of our rspec tests for our Rails app on a build server using Capistrano. The problem is that Capistrano seems to think that the command called to run the model tests failed when in fact I

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread aslak hellesoy
On Wed, Aug 13, 2008 at 2:25 AM, Zach Dennis [EMAIL PROTECTED] wrote: Sometimes I don't have a full need to make a class to do something, yet I want something readable and concise. This is influenced from the joys of JavaScript. Today I made this happen. Love it, like it, hate it, WDYT? As

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread Zach Dennis
On Wed, Aug 13, 2008 at 5:26 AM, Joseph Wilk [EMAIL PROTECTED] wrote: It looks like a nice shortcut for those times when you are registering simple one-off listeners. While it does provide a nice shortcut I can see reasons why that shortcut might be bad(in some cases). Separating

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread Zach Dennis
On Wed, Aug 13, 2008 at 8:29 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 2:25 AM, Zach Dennis [EMAIL PROTECTED] wrote: Sometimes I don't have a full need to make a class to do something, yet I want something readable and concise. This is influenced from the joys of

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread aslak hellesoy
On Wed, Aug 13, 2008 at 5:18 PM, Zach Dennis [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 11:00 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 4:50 PM, Zach Dennis [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 8:29 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On

[rspec-users] formatter writing output on different files

2008-08-13 Thread Stefano Crocco
Hello to every one, I'm writing an application and using rspec to test it. I like very much it's html output, since it allows me to look at it and see how something is supposed to work. The only problem is that the list of example is quickly growing to a size that makes looking for a particular

[rspec-users] first try to make a controller test with RSpe

2008-08-13 Thread tgateau
Hello, I'm trying to create a controller test with RSpec but I get the error when I run spec login_controller_spec.rb --format specdoc ../../app/controllers/application.rb:4: uninitialized constant ActionController (NameError) from

Re: [rspec-users] first try to make a controller test with RSpe

2008-08-13 Thread Joseph Wilk
Hello, Try including your rails config/environment.rb file in your spec_helper: spec_helper.rb ENV[RAILS_ENV] = test require /../config/environment -- Joseph Wilk http://www.joesniff.co.uk -- Posted via http://www.ruby-forum.com/. ___

Re: [rspec-users] first try to make a controller test with RSpe

2008-08-13 Thread tgateau
Bug fixed ! thank you very much ! Hello, Try including your rails config/environment.rb file in your spec_helper: spec_helper.rb ENV[RAILS_ENV] = test require /../config/environment -- Joseph Wilk http://www.joesniff.co.uk -- Posted via http://www.ruby-forum.com/.

[rspec-users] require StepGroup problem

2008-08-13 Thread Gaston Ramos
Hi guys, I'm trying to run this story http://pastie.org/252361 and I get the following error: http://pastie.org/252367 the helper file is: http://pastie.org/252368 I think that I'm missing a require somewhere, can anybody help me? Any thoughts? Versions: rspec 1.1.4 ruby on rails 2.1 -- Most

Re: [rspec-users] require StepGroup problem

2008-08-13 Thread Pat Maddox
On Wed, Aug 13, 2008 at 12:18 PM, Gaston Ramos [EMAIL PROTECTED] wrote: Hi guys, I'm trying to run this story http://pastie.org/252361 You need to fully-qualify the class name, which is Spec::Story::StepGroup. Although I'm not sure why you're defining the steps this way in the first place. I