Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread aslak hellesoy
On Wed, Nov 19, 2008 at 3:03 AM, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Ben Mabey wrote: >> >> If that is not the issue please open a ticket on Lighthouse. > > I tried. > > lighthouse error elaborate? > > > ___ > rspec-users mailing list > rspec-u

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread aslak hellesoy
On Wed, Nov 19, 2008 at 2:46 AM, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Ben Mabey wrote: >> >> Are you using the latest cucumber from github? > > Yes. I did a git pull and reproduced the error right before reporting it. > This was fixed three days ago (!?) http://github.com/aslakhellesoy/cuc

[rspec-users] How to write advanced matchers

2008-11-18 Thread Erik Pukinskis
Hi Folks! For any developers reading... thank you for RSpec... it's wonderful! I've been trying my darndest to get into it, spec everything ahead of time, and it's working out great. The one thing I really have a hard time with though is writing more advanced custom matchers. I can write simple

Re: [rspec-users] Extending the autotest discover rules

2008-11-18 Thread David Chelimsky
On Tue, Nov 18, 2008 at 9:55 PM, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: > Thanks David, I added a .autotest file in my project root path and the new > mapping. It worked like a charm! Thank Ryan for offering a nice API to manage it - I just pointed you to the docs :) Cheers, David >

Re: [rspec-users] Extending the autotest discover rules

2008-11-18 Thread Marcelo de Moraes Serpa
Thanks David, I added a .autotest file in my project root path and the new mapping. It worked like a charm! Marcelo. On Wed, Nov 19, 2008 at 1:34 AM, David Chelimsky <[EMAIL PROTECTED]>wrote: > On Tue, Nov 18, 2008 at 9:18 PM, Marcelo de Moraes Serpa > <[EMAIL PROTECTED]> wrote: > > Hello, > > >

Re: [rspec-users] Extending the autotest discover rules

2008-11-18 Thread David Chelimsky
On Tue, Nov 18, 2008 at 9:18 PM, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: > Hello, > > We are creating tests for presenters (presenter pattern) classes. We are > putting the implementation classes in app/presenters and we thought on > putting the specs in spec/presenters. Question is, how

[rspec-users] Extending the autotest discover rules

2008-11-18 Thread Marcelo de Moraes Serpa
Hello, We are creating tests for presenters (presenter pattern) classes. We are putting the implementation classes in app/presenters and we thought on putting the specs in spec/presenters. Question is, how could I extend the autotest discover rules so that it will also monitor the presenter classe

Re: [rspec-users] Cucumber - how to spec a quick search box

2008-11-18 Thread Bryan Helmkamp
If the form tag has an ID, you can use Webrat' new submit_form method to do just this sort of thing. -Bryan On Tue, Nov 18, 2008 at 8:36 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: > Zach Dennis wrote: >> >> On Tue, Nov 18, 2008 at 5:44 AM, Joseph Wilk <[EMAIL PROTECTED]> >> wrote: >> >>> >>> Mike

Re: [rspec-users] Help: Attempts to run specs quitting midstream

2008-11-18 Thread Matt Griffith
Matt Wynne wrote: > It would be really helpful if you could file a bug report so that > people can get onto fixing it: > http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/new RSpec's Lighthouse is broken. I've tried submitting 2 tickets with no luck. If someone on the RSpec team needs mo

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread Bret Pettichord
Ben Mabey wrote: If that is not the issue please open a ticket on Lighthouse. I tried. lighthouse error ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread Bret Pettichord
Ben Mabey wrote: Are you using the latest cucumber from github? Yes. I did a git pull and reproduced the error right before reporting it. Afterwards, I converted my test to use the new *.feature format and this worked fine. I am curious what the thinking is about supporting the old format.

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread Yi Wen
Weird, it seems like a bug to me: def Scenario(name, &proc) add_scenario(name, &proc) end def add_scenario(name, line, &proc) scenario = Scenario.new(self, name, line, &proc) @scenarios << scenario scenario end Scenario lacks a "line" argum

Re: [rspec-users] Autospec only runs specs in spec/models/ folder

2008-11-18 Thread Wayne Soh
David Chelimsky wrote: > On Tue, Nov 18, 2008 at 1:28 PM, Wayne Soh <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Where do I change the mappings of the specs in my rails app. >> rspec/lib/autotest/rspec.rb? >> >> Given the latest versions in rspec, what is the bare minimum >> plugins/gems that I need to

Re: [rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread Ben Mabey
Bret Pettichord wrote: I am trying to get some old "rbehave" scripts working with cucumber. I am running into an error. I get the same error when I run the "calculator_ruby_features" example. Any suggestions? Bret Are you using the latest cucumber from github? There was a problem with the

[rspec-users] `add_scenario': wrong, number of arguments (1 for 2)

2008-11-18 Thread Bret Pettichord
I am trying to get some old "rbehave" scripts working with cucumber. I am running into an error. I get the same error when I run the "calculator_ruby_features" example. Any suggestions? Bret C:\work\cucumber\examples\calculator_ruby_features>rake features (in C:/work/cucumber/examples/calcula

[rspec-users] dealing with a retry inside of a rescue block

2008-11-18 Thread Joey Geiger
I'm trying to spec this method which is attempting to connect to beanstalkd message queue. I'm trying to figure out how to spec this so it catches the retry without actually retrying the block forever. Any help would be appreciated. def get_message(name, peek=false) begin if peek

Re: [rspec-users] Mocking and stubbing model relationships

2008-11-18 Thread Ben Mabey
Nick Hoffman wrote: Before writing specs for a one-to-many relationship between two models, I did some research and found that some people were creating proxy mocks, and others were using Matthew Heidemann's #stub_association! (which essentially does that for, but in a nice, DRY way): http:

Re: [rspec-users] Help: Attempts to run specs quitting midstream

2008-11-18 Thread Matt Griffith
Matt Wynne wrote: > It would be really helpful if you could file a bug report so that > people can get onto fixing it: > http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/new Yep I'm trying to narrow it down to the simplest repro case. Unfortunately I can only reproduce it in my rails ap

Re: [rspec-users] Help: Attempts to run specs quitting midstream

2008-11-18 Thread Matt Wynne
On 18 Nov 2008, at 17:06, Matt Griffith wrote: Evan Dorn wrote: I am having a very frustrating problem running specs on my current project. When I run tests en masse with "rake spec" or with autotest, it frequently quits without completing all the tests. It also sometimes runs the tests in

Re: [rspec-users] Autospec only runs specs in spec/models/ folder

2008-11-18 Thread David Chelimsky
On Tue, Nov 18, 2008 at 1:28 PM, Wayne Soh <[EMAIL PROTECTED]> wrote: > Hi, > > Where do I change the mappings of the specs in my rails app. > rspec/lib/autotest/rspec.rb? > > Given the latest versions in rspec, what is the bare minimum > plugins/gems that I need to run autospec. I've been playing

[rspec-users] Autospec only runs specs in spec/models/ folder

2008-11-18 Thread Wayne Soh
Hi, Where do I change the mappings of the specs in my rails app. rspec/lib/autotest/rspec.rb? Given the latest versions in rspec, what is the bare minimum plugins/gems that I need to run autospec. I've been playing around and installing too much stuff into my app that I'm confused :P THanks! Way

Re: [rspec-users] undefined method `white_list_sanitizer'

2008-11-18 Thread David Chelimsky
On Tue, Nov 18, 2008 at 11:36 AM, Matt McNeil <[EMAIL PROTECTED]> wrote: > > Hi there, > After upgrading to the latest Rails RC (2.2.0) and rspec 1.1.11, I'm getting > the following error in my specs (but not in the application itself): > > NoMethodError in 'ApplicationHelper#truncate_text truncate

[rspec-users] undefined method `white_list_sanitizer'

2008-11-18 Thread Matt McNeil
Hi there, After upgrading to the latest Rails RC (2.2.0) and rspec 1.1.11, I'm getting the following error in my specs (but not in the application itself): NoMethodError in 'ApplicationHelper#truncate_text truncates text to 270 characters' undefined method `white_list_sanitizer' for Spec::Rails::

Re: [rspec-users] Help: Attempts to run specs quitting midstream

2008-11-18 Thread Matt Griffith
Evan Dorn wrote: > I am having a very frustrating problem running specs on my current > project. When I run tests en masse with "rake spec" or with autotest, > it frequently quits without completing all the tests. It also > sometimes runs the tests in multiple batches, giving more than one > res

Re: [rspec-users] Cucumber autotest load error between 0.1.8 and 0.1.9

2008-11-18 Thread Harry Love
On Tue, Nov 18, 2008 at 7:56 AM, Peter Jaros <[EMAIL PROTECTED]> wrote: > Could you explain what doesn't work when you run autotest? Or, I > suppose, what it *does* do? :) > > Also, does `script/cucumber features` work? I originally ran 'script/generate cucumber' under 0.1.8. The script/cucumber

Re: [rspec-users] Cucumber autotest load error between 0.1.8 and 0.1.9

2008-11-18 Thread Peter Jaros
On Mon, Nov 17, 2008 at 10:19 PM, Harry Love <[EMAIL PROTECTED]> wrote: > Last week I installed Cucumber 0.1.8 for my Rails app and both > 'cucumber features' and 'rake features' worked fine. Features and > steps were evaluated. > > Today I upgraded Cucumber to 0.1.9 and tried to set up autotest.

Re: [rspec-users] Cucumber - how to spec a quick search box

2008-11-18 Thread Joseph Wilk
Zach Dennis wrote: On Tue, Nov 18, 2008 at 5:44 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: Mikel Lindsaar wrote: Hello all. Wondering if anyone else has solved this. Some websites (including the intranet app I am working on) have a form in the top corner of the site that is buttonless

Re: [rspec-users] Mocking and stubbing model relationships

2008-11-18 Thread Rahoul Baruah
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18 Nov 2008, at 05:41, Nick Hoffman wrote: Before writing specs for a one-to-many relationship between two models, I did some research and found that some people were creating proxy mocks, and others were using Matthew Heidemann's #stub_ass

Re: [rspec-users] Cucumber - how to spec a quick search box

2008-11-18 Thread Zach Dennis
On Tue, Nov 18, 2008 at 5:44 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: > Mikel Lindsaar wrote: >> >> Hello all. >> >> Wondering if anyone else has solved this. >> >> Some websites (including the intranet app I am working on) have a form in >> the top corner of the site that is buttonless. If you f

Re: [rspec-users] Cucumber - how to spec a quick search box

2008-11-18 Thread Joseph Wilk
Mikel Lindsaar wrote: Hello all. Wondering if anyone else has solved this. Some websites (including the intranet app I am working on) have a form in the top corner of the site that is buttonless. If you focus on this form enter text and hit enter, it submits. usually used for quick search b

[rspec-users] Cucumber - how to spec a quick search box

2008-11-18 Thread Mikel Lindsaar
Hello all. Wondering if anyone else has solved this. Some websites (including the intranet app I am working on) have a form in the top corner of the site that is buttonless. If you focus on this form enter text and hit enter, it submits. usually used for quick search boxes. Question, has anyone

Re: [rspec-users] Autotest style autotest/rails_rspec doesn't seem to exist. Aborting.

2008-11-18 Thread Ramon Tayag
Thanks for you replies. I reinstalled it and it works fine. It seems that it didn't install properly before! :o thanks goodness that's it. hehe Ramon Tayag On Mon, Nov 17, 2008 at 8:19 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > Is this only happening in one rails app? or all of them?

[rspec-users] Spec'ing specific before_filters in controllers

2008-11-18 Thread Shane Mingins
Hi I like using before_filter in controllers to dry up code. From what I have read I understand that this is not something everyone agrees upon. Never mind. I was looking for a way in my controller spec's to basically 1. assert that I have applied the before_filter on the actions I want

Re: [rspec-users] Mocking and stubbing model relationships

2008-11-18 Thread Matt Wynne
On 18 Nov 2008, at 05:41, Nick Hoffman wrote: Before writing specs for a one-to-many relationship between two models, I did some research and found that some people were creating proxy mocks, and others were using Matthew Heidemann's #stub_association! (which essentially does that for, but i