[rspec-users] Best place to set load path for new spec folders

2008-10-05 Thread Mikel Lindsaar
I have a bunch of observers in RAILS_ROOT/spec/observers/ as well as in some sub directories for some name spaced observers. For example: \spec \observers person_observer_spec.rb \admin user_observer_spec.rb autospec doesn't seem to want to pick them up. The box I

[rspec-users] would I stub an existing class method out or use fixtures in this scenario?

2008-10-05 Thread Greg Hauptmann
Hi, Would the BDD experts recommend I either (a) use fixtures for data or (b) stub out existing class methods for such a scenario? Scenario = Working on a "populate for future transactions" method & testing this. It generates "transactions" table rows as part of the test. To do this it (a) requ

Re: [rspec-users] Webrat and submitting a form using an image

2008-10-05 Thread Fernando Perez
Thank you very much for the link! Actually my problem was that I have 2 buttons on the page, and the only way to distinguish them is to use the alt tag which I wasn't currently using. Now everything works perfectly. -- Posted via http://www.ruby-forum.com/. __

[rspec-users] What questions do you have about testing?

2008-10-05 Thread Pat Maddox
Hey everyone, We're doing a panel on testing at the Voices That Matter conference (http://www.voicesthatmatter.com/ruby2008/ - you should go :). Obie set up a google moderator thing [1] to collect questions for the panel. I invite you all to put some questions up on there. They can be questions

Re: [rspec-users] Difference between gem and plugin

2008-10-05 Thread Fernando Perez
Hi, Going plugin-less for RSpec went 99% smoothly, here is the only error message I got: $ ./script/generate rspec Gem::SourceIndex#search support for Regexp patterns is deprecated /usr/local/ruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/rails_generator/lookup.rb:211:in `each' is outdated -- Po

Re: [rspec-users] Difference between gem and plugin

2008-10-05 Thread Fernando Perez
By the way for a RoR application, can I also go plugin-less for Webrat and Cucumber? From what I understand I still need to install these two as plugins. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org h

Re: [rspec-users] Difference between gem and plugin

2008-10-05 Thread David Chelimsky
On Sun, Oct 5, 2008 at 10:51 AM, Fernando Perez <[EMAIL PROTECTED]> wrote: > By the way for a RoR application, can I also go plugin-less for Webrat > and Cucumber? From what I understand I still need to install these two > as plugins. Why ask us when you can ask rubygems? $ gem q -drn cucumber $

Re: [rspec-users] Difference between gem and plugin

2008-10-05 Thread David Chelimsky
On Sun, Oct 5, 2008 at 10:45 AM, Fernando Perez <[EMAIL PROTECTED]> wrote: > Hi, > > Going plugin-less for RSpec went 99% smoothly, here is the only error > message I got: > > $ ./script/generate rspec > Gem::SourceIndex#search support for Regexp patterns is deprecated > /usr/local/ruby/lib/ruby/ge

Re: [rspec-users] Difference between gem and plugin

2008-10-05 Thread Fernando Perez
> Why ask us when you can ask rubygems? > Well I prefer to ask (and sound stupid 5 minutes) than not ask (and be stupid all my life), that's the way I work. From the cucumber github wiki located at: http://github.com/aslakhellesoy/cucumber/wikis -- Installation (Rails people – see Ruby on Rails

[rspec-users] Cucumber 0.1.7 released

2008-10-05 Thread aslak hellesoy
I just released 0.1.7 as a gem. (As usual, it will take a few hours before it rsyncs around the world). Changes are here: http://github.com/aslakhellesoy/cucumber/tree/v0.1.7/History.txt Thanks to everyone who's contributed with feedback and patches! Cheers, Aslak ___

Re: [rspec-users] Difference between gem and plugin

2008-10-05 Thread Fernando Perez
I have removed the plugins for both cucumber and webrat. Now I am having the following error message when running rake features or ./script/generate cucumber: -- /usr/local/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.6/lib/cucumber/cli.rb:83:in `read': No such file or directory - cucumber.yml (Errn

Re: [rspec-users] Difference between gem and plugin

2008-10-05 Thread David Chelimsky
On Sun, Oct 5, 2008 at 11:20 AM, Fernando Perez <[EMAIL PROTECTED]> wrote: >> Why ask us when you can ask rubygems? >> > Well I prefer to ask (and sound stupid 5 minutes) than not ask (and be > stupid all my life), that's the way I work. From the cucumber github > wiki located at: http://github.com

Re: [rspec-users] Cucumber 0.1.7 released

2008-10-05 Thread Matt Wynne
Shame we didn't see you at Citcon, Aslak, but I'm glad to hear you were doing something useful instead! Looking forward to playing with the new toys. cheers, Matt On 5 Oct 2008, at 17:55, aslak hellesoy wrote: I just released 0.1.7 as a gem. (As usual, it will take a few hours before it rsy

Re: [rspec-users] would I stub an existing class method out or use fixtures in this scenario?

2008-10-05 Thread Matt Wynne
On 5 Oct 2008, at 12:26, Greg Hauptmann wrote: BankAccount.any_instance.stubs(:balance?).returns()). Do people normal use the "any_instance.stubs" approach to stub out existing classes already developed, as a means to minimize associated Is this any_instance thing in the rspec mocking framewor

Re: [rspec-users] What questions do you have about testing?

2008-10-05 Thread Scott Taylor
On Oct 5, 2008, at 11:11 AM, Pat Maddox wrote: Hey everyone, We're doing a panel on testing at the Voices That Matter conference (http://www.voicesthatmatter.com/ruby2008/ - you should go :). Obie set up a google moderator thing [1] to collect questions for the panel. I invite you all to

Re: [rspec-users] would I stub an existing class method out or use fixtures in this scenario?

2008-10-05 Thread Matt Wynne
On 5 Oct 2008, at 12:26, Greg Hauptmann wrote: Hi, Would the BDD experts recommend I either (a) use fixtures for data or (b) stub out existing class methods for such a scenario? Scenario = Working on a "populate for future transactions" method & testing this. It generates "transactions" table

Re: [rspec-users] would I stub an existing class method out or use fixtures in this scenario?

2008-10-05 Thread Scott Taylor
On Oct 5, 2008, at 4:47 PM, Matt Wynne wrote: On 5 Oct 2008, at 12:26, Greg Hauptmann wrote: BankAccount.any_instance.stubs(:balance?).returns()). Do people normal use the "any_instance.stubs" approach to stub out existing classes already developed, as a means to minimize associated Is this

Re: [rspec-users] would I stub an existing class method out or use fixtures in this scenario?

2008-10-05 Thread Matt Wynne
On 5 Oct 2008, at 21:56, Scott Taylor wrote: On Oct 5, 2008, at 4:47 PM, Matt Wynne wrote: On 5 Oct 2008, at 12:26, Greg Hauptmann wrote: BankAccount.any_instance.stubs(:balance?).returns()). Do people normal use the "any_instance.stubs" approach to stub out existing classes already develop

Re: [rspec-users] would I stub an existing class method out or use fixtures in this scenario?

2008-10-05 Thread Scott Taylor
On Oct 5, 2008, at 5:04 PM, Matt Wynne wrote: On 5 Oct 2008, at 21:56, Scott Taylor wrote: On Oct 5, 2008, at 4:47 PM, Matt Wynne wrote: On 5 Oct 2008, at 12:26, Greg Hauptmann wrote: BankAccount.any_instance.stubs(:balance?).returns()). Do people normal use the "any_instance.stubs" appr

Re: [rspec-users] What questions do you have about testing?

2008-10-05 Thread Pat Maddox
Scott Taylor <[EMAIL PROTECTED]> writes: > On Oct 5, 2008, at 11:11 AM, Pat Maddox wrote: > >> Hey everyone, >> >> We're doing a panel on testing at the Voices That Matter conference >> (http://www.voicesthatmatter.com/ruby2008/ - you should go :). Obie >> set >> up a google moderator thing [1] t

Re: [rspec-users] would I stub an existing class method out or use fixtures in this scenario?

2008-10-05 Thread Greg Hauptmann
Hi guys, I'll try to put some clarifying comments here re my question: (a) "any_instance.stubs" - this already exists in Mocha (http://mocha.rubyforge.org/classes/Class.html#M01) (b) where I had "do people normal use the "any_instance.stubs" approach to stub out existing classes already deve