[rspec-users] cucumber - how to bootstrap outside of rails?

2009-05-01 Thread James Byrne
Setting up cucumber inside a Rails project is no more difficult than running script/generate cucumber. But what does one do when working without Rails at all? How do you generate the features tree and all of its default files? -- Posted via http://www.ruby-forum.com/. ___

Re: [rspec-users] [Cucumber] how to get name from scenario hook?

2009-05-01 Thread wolfmanjm
filed the ticket, as it turns out that the name is not available in the sexp for scenario outlines. Thanks On May 1, 4:03 pm, wolfmanjm wrote: > to_sexp should do it for now, but I'll file a ticket as #name would be > useful. > > Thanks > > On May 1, 2:51 pm, aslak hellesoy wrote: > > > > Hi,

Re: [rspec-users] Help with some basics

2009-05-01 Thread Andrew Timberlake
On Fri, May 1, 2009 at 6:57 PM, Samuel Soares flores wrote: > >> >> Managed to find the problem, the class ProductTemplate wasn't being >> loaded so "it" wasn't working on an object. >> The error is not very useful in this situation but I'm moving forward >> again. >> > > How did you solved it? I'

Re: [rspec-users] [Cucumber] how to get name from scenario hook?

2009-05-01 Thread wolfmanjm
to_sexp should do it for now, but I'll file a ticket as #name would be useful. Thanks On May 1, 2:51 pm, aslak hellesoy wrote: > > Hi, > > > Given the hook: > > > After do |scenario| > > > end > > > How do I get the name of the scenario from the scenario parameter? > > > scenario.name doesn't  w

Re: [rspec-users] [Cucumber] how to get name from scenario hook?

2009-05-01 Thread aslak hellesoy
> Hi, > > Given the hook: > > After do |scenario| > > end > > How do I get the name of the scenario from the scenario parameter? > > scenario.name doesn't work, and I looked through the source code and > it was not immediately obvious to me. > You can call to_sexp on it and get it from there. Or

Re: [rspec-users] Rspec-rails without ActiveRecord framework failure

2009-05-01 Thread Matt McNeil
David Chelimsky-2 wrote: > > > Can you please file a bug report at http://rspec.lighthouseapp.com? I > need to fix something else and do another rspec-rails release over the > weekend (before RC) and I'll fix this one in the same release. Don't > know about a workaround this minute, but when i

Re: [rspec-users] Rspec-rails without ActiveRecord framework failure

2009-05-01 Thread David Chelimsky
On Fri, May 1, 2009 at 3:10 PM, Matt McNeil wrote: > > Hello, > > Our project is not using ActiveRecord and so I've removed database.yml and > added this line to the environment.rb file: >  config.frameworks -= [ :active_record ] > > Although I see in the rspec-rails source several places where th

[rspec-users] [Cucumber] how to get name from scenario hook?

2009-05-01 Thread Jim Morris
Hi, Given the hook: After do |scenario| end How do I get the name of the scenario from the scenario parameter? scenario.name doesn't work, and I looked through the source code and it was not immediately obvious to me. Thanks ___ rspec-users mailing

[rspec-users] Rspec-rails without ActiveRecord framework failure

2009-05-01 Thread Matt McNeil
Hello, Our project is not using ActiveRecord and so I've removed database.yml and added this line to the environment.rb file: config.frameworks -= [ :active_record ] Although I see in the rspec-rails source several places where the existence of ActiveRecord::Base is checked, I am still getting

Re: [rspec-users] Command to run a single scenario using cucumber

2009-05-01 Thread Ben Mabey
Anil Gollaa wrote: Hi, I have installed cucumber and was able to run all the scenarios using rake features, but can body tell me. What is the command to run a single scenario? Thanks, Anil kumar. bma...@benzii:~/$ cucumber --help Usage: cucumber [options] [ [FILE|DIR|URL][:LINE[:LINE]*] ]+

Re: [rspec-users] Plugin to generate text logs using cucumber.

2009-05-01 Thread Ben Mabey
Ben Lovell wrote: On Fri, May 1, 2009 at 7:22 PM, Anil Gollaa > wrote: Hi, I was able to run the scenarios using rake features in cucmber, All the respective results are displayed in colour in std output. is there any plugin using which i can capture

Re: [rspec-users] Plugin to generate text logs using cucumber.

2009-05-01 Thread Ben Lovell
On Fri, May 1, 2009 at 7:22 PM, Anil Gollaa wrote: > Hi, > I was able to run the scenarios using rake features in cucmber, > All the respective results are displayed in colour in std output. > > is there any plugin using which i can capture these results(that are > generated at run time). > Pleas

[rspec-users] Plugin to generate text logs using cucumber.

2009-05-01 Thread Anil Gollaa
Hi, I was able to run the scenarios using rake features in cucmber, All the respective results are displayed in colour in std output. is there any plugin using which i can capture these results(that are generated at run time). Please let me know the procedure to capture these logs in to a files. -

[rspec-users] Command to run a single scenario using cucumber

2009-05-01 Thread Anil Gollaa
Hi, I have installed cucumber and was able to run all the scenarios using rake features, but can body tell me. What is the command to run a single scenario? Thanks, Anil kumar. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec

Re: [rspec-users] spec_server errors when reloading fixture replacement plugins (was: spec_server not reloading model classes)

2009-05-01 Thread Andrew Vit
On May 1, 2009, at 7:04 AM, David Chelimsky wrote: On Sun, Mar 29, 2009 at 6:14 PM, Andrew Vit wrote: It appears this is a bug, with an apparently simple fix in spec_server.rb (rails 2.3 compatibility): https://rspec.lighthouseapp.com/projects/5645/tickets/759 However, now that it's reloadin

Re: [rspec-users] Help with some basics

2009-05-01 Thread Samuel Soares flores
> > Managed to find the problem, the class ProductTemplate wasn't being > loaded so "it" wasn't working on an object. > The error is not very useful in this situation but I'm moving forward > again. > How did you solved it? I'm having the same problem. -- Posted via http://www.ruby-forum.com/

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-01 Thread David Chelimsky
On Fri, May 1, 2009 at 11:52 AM, Matt Wynne wrote: > > On 1 May 2009, at 15:05, David Chelimsky wrote: > >> On Fri, May 1, 2009 at 8:42 AM, Matt Wynne >> wrote: >>> >>> I'm creating a class in my spec file to test out a module, but when I run >>> the spec a second time in spec_server, I get the e

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-01 Thread Matt Wynne
On 1 May 2009, at 15:05, David Chelimsky wrote: On Fri, May 1, 2009 at 8:42 AM, Matt Wynne > wrote: I'm creating a class in my spec file to test out a module, but when I run the spec a second time in spec_server, I get the error above. I presume this is because rails is un-loading the class,

[rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-01 Thread Matt Wynne
I'm creating a class in my spec file to test out a module, but when I run the spec a second time in spec_server, I get the error above. I presume this is because rails is un-loading the class, and it's not getting re-loaded properly as it doesn't have its own file in the conventional place.

Re: [rspec-users] Before and After blocks for individual feature files?

2009-05-01 Thread Ben Mabey
Korny Sietsma wrote: Celerity is very cool - when it works. It didn't work with out messy combination of javascript libraries, alas. (Dojo 0.4-ish for legacy bits, GWT for new bits) - apparently it will work with either of these frameworks, but for us, with both, it died mysteriously (and we ga

Re: [rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-01 Thread David Chelimsky
On Fri, May 1, 2009 at 8:42 AM, Matt Wynne wrote: > I'm creating a class in my spec file to test out a module, but when I run > the spec a second time in spec_server, I get the error above. > > I presume this is because rails is un-loading the class, and it's not > getting re-loaded properly. > >

Re: [rspec-users] spec_server not reloading model classes

2009-05-01 Thread David Chelimsky
On Sun, Mar 29, 2009 at 6:14 PM, Andrew Vit wrote: > It appears this is a bug, with an apparently simple fix in > spec_server.rb (rails 2.3 compatibility): > > https://rspec.lighthouseapp.com/projects/5645/tickets/759 > > However, now that it's reloading my app, it's not reloading the setup > from

Re: [rspec-users] spec_server not reloading model classes

2009-05-01 Thread Thibaud Guillaume-Gentil
On Mar 30, 1:14 am, Andrew Vit wrote: > It appears this is a bug, with an apparently simple fix in > spec_server.rb (rails 2.3 compatibility): > > https://rspec.lighthouseapp.com/projects/5645/tickets/759 > > However, now that it's reloading my app, it's not reloading the setup > from my fixture/f

[rspec-users] [rspec]spec_server: already initialized constant MyTestClass

2009-05-01 Thread Matt Wynne
I'm creating a class in my spec file to test out a module, but when I run the spec a second time in spec_server, I get the error above. I presume this is because rails is un-loading the class, and it's not getting re-loaded properly. Does anyone have a nice workaround for this? cheers, Mat

Re: [rspec-users] Before and After blocks for individual feature files?

2009-05-01 Thread Joseph Wilk
Ben Lovell wrote: On Fri, May 1, 2009 at 12:33 PM, Matt Wynne > wrote: Have you looked at celerity? I'm not sure if webrat has an adapter for it yet, but it's a 'headless' browser which drives a lot faster than selenium. Some people on this list are gettin

Re: [rspec-users] Before and After blocks for individual feature files?

2009-05-01 Thread Korny Sietsma
Celerity is very cool - when it works. It didn't work with out messy combination of javascript libraries, alas. (Dojo 0.4-ish for legacy bits, GWT for new bits) - apparently it will work with either of these frameworks, but for us, with both, it died mysteriously (and we gave up trying to fix it

Re: [rspec-users] Before and After blocks for individual feature files?

2009-05-01 Thread Ben Lovell
On Fri, May 1, 2009 at 12:33 PM, Matt Wynne wrote: > > Have you looked at celerity? I'm not sure if webrat has an adapter for it > yet, but it's a 'headless' browser which drives a lot faster than selenium. > Some people on this list are getting a lot of joy out of it. +1 to celerity. You need

Re: [rspec-users] Before and After blocks for individual feature files?

2009-05-01 Thread Matt Wynne
On 1 May 2009, at 03:32, Julian Leviston wrote: Hey ben, Selenium is slow, and we have a lot of Ajax, so I'm just looking at ways to speed it up. Tags will be my first port of call and splitting out between automated and simulated. It irks me we can't then simply run all our tests with o

[rspec-users] Cucumber for testing web services?

2009-05-01 Thread Ola Eldøy
I am looking for a framework to test web services, and was wondering whether Cucumber is ready to do this "out of the box". (Or is Ruby knowledge required?. I have posted a question on Stackoverflow if anyone wants to chip in there: http://stackoverflow.com/questions/810410/test-framework-for