Re: [rspec-users] Controller spec gives strange error

2008-07-04 Thread Damian Terentiev
Bryan Ray wrote: I believe the problem is that you're not telling the Language model what to stub/mock when it calls the find method inside of set_site_language. I'm not entirely sure, but I would imagine that the TestUnit test is passing, because it's using the full Rails stack to run the

Re: [rspec-users] Global setup method goes where?

2008-07-04 Thread Ben Mabey
Gregg Pollack wrote: You know how sometimes you look in /log/test.log for debug information like which test caused a certain render or query? I found this post which shows how to get test information printed out in your test.log with test:unit and shoulda, but I'm not sure there's a way to do

Re: [rspec-users] Global setup method goes where?

2008-07-04 Thread Mikel Lindsaar
On Fri, Jul 4, 2008 at 4:19 PM, Ben Mabey [EMAIL PROTECTED] wrote: Gregg Pollack wrote: I found this post which shows how to get test information printed out in your test.log with test:unit and shoulda, but I'm not sure there's a way to do it with RSpec. Damn, that is a good idea. In your

Re: [rspec-users] Global setup method goes where?

2008-07-04 Thread Ben Mabey
Ben Mabey wrote: Gregg Pollack wrote: You know how sometimes you look in /log/test.log for debug information like which test caused a certain render or query? I found this post which shows how to get test information printed out in your test.log with test:unit and shoulda, but I'm not sure

Re: [rspec-users] Re-use scenarios from another story file?

2008-07-04 Thread David Salgado
Unless you're looking for the steps to show up when you run things, why not just have a helper method that does the setup for you and then have a Given step that invokes that method? I know I can extract logic into steps, but I'd like the pre-requisite scenarios to have some assertions, and

[rspec-users] Open source projects using RSpec

2008-07-04 Thread Olivier Dupuis
Hello, Anyone knows of open source projects that uses RSpec and RSpec Stories? I'd love to see how it is being used in different projects. Thank you Olivier Dupuis ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] Open source projects using RSpec

2008-07-04 Thread Lori M Olson
Someone on the list was just referencing Typo - http://svn.typosphere.org/typo/trunk/spec/controllers/comments_controller_spec.rb Doesn't look like they use stories, though. On 4-Jul-08, at 4:29 AM, Olivier Dupuis wrote: Hello, Anyone knows of open source projects that uses RSpec and RSpec

Re: [rspec-users] Open source projects using RSpec

2008-07-04 Thread Erin Staniland
I know there are stories in the restful-authentication plugin http://github.com/technoweenie/restful-authentication/tree/master/generators/authenticated/templates/stories Erin On 4 Jul 2008, at 11:29, Olivier Dupuis wrote: Hello, Anyone knows of open source projects that uses RSpec and

Re: [rspec-users] Open source projects using RSpec

2008-07-04 Thread David Chelimsky
On Jul 4, 2008, at 5:29 AM, Olivier Dupuis wrote: Hello, Anyone knows of open source projects that uses RSpec and RSpec Stories? I'd love to see how it is being used in different projects. Here are a few that I know of: rspec examples (no stories) * http://github.com/wycats/merb-core and

[rspec-users] auto-generated descriptions

2008-07-04 Thread David Chelimsky
Hey all, I'm looking for ways to optimize rspec and came upon something interesting. If I remove handling for auto-generated descriptions (the thing that allows you to say specify { 5.should == 5 } with no description string) we get an average 35% performance increase per expectation.

Re: [rspec-users] Open source projects using RSpec

2008-07-04 Thread Scott Taylor
On Jul 4, 2008, at 6:29 AM, Olivier Dupuis wrote: Hello, Anyone knows of open source projects that uses RSpec and RSpec Stories? I'd love to see how it is being used in different projects. There are lots of projects: rspec itself, rubinius / rubyspec a series of rails plugins, like:

Re: [rspec-users] [rspec-devel] auto-generated descriptions

2008-07-04 Thread Pat Maddox
On Fri, Jul 4, 2008 at 1:45 PM, David Chelimsky [EMAIL PROTECTED] wrote: Hey all, I'm looking for ways to optimize rspec and came upon something interesting. If I remove handling for auto-generated descriptions (the thing that allows you to say specify { 5.should == 5 } with no description

Re: [rspec-users] auto-generated descriptions

2008-07-04 Thread Avdi Grimm
On Fri, Jul 4, 2008 at 4:45 PM, David Chelimsky [EMAIL PROTECTED] wrote: So - how bad do you think this would suck to remove that feature? Are you using it yourself? Personally, I *love* this feature, and would not like to see it go. One of my heuristics for a good spec is that it either a) has

Re: [rspec-users] auto-generated descriptions

2008-07-04 Thread Steve Eley
On Fri, Jul 4, 2008 at 4:45 PM, David Chelimsky [EMAIL PROTECTED] wrote: So - how bad do you think this would suck to remove that feature? Are you using it yourself? I'm not, but would it be impractical to extract it out into some sort of module or helper and tell people to include it in their

Re: [rspec-users] auto-generated descriptions

2008-07-04 Thread Ben Mabey
David Chelimsky wrote: Hey all, I'm looking for ways to optimize rspec and came upon something interesting. If I remove handling for auto-generated descriptions (the thing that allows you to say specify { 5.should == 5 } with no description string) we get an average 35% performance increase

Re: [rspec-users] auto-generated descriptions

2008-07-04 Thread Mikel Lindsaar
On Sat, Jul 5, 2008 at 12:18 PM, Steve Eley [EMAIL PROTECTED] wrote: On Fri, Jul 4, 2008 at 4:45 PM, David Chelimsky [EMAIL PROTECTED] wrote: So - how bad do you think this would suck to remove that feature? Are you using it yourself? I'm not, but would it be impractical to extract it out into

Re: [rspec-users] auto-generated descriptions

2008-07-04 Thread Scott Taylor
On Jul 4, 2008, at 10:54 PM, Mikel Lindsaar wrote: On Sat, Jul 5, 2008 at 12:18 PM, Steve Eley [EMAIL PROTECTED] wrote: On Fri, Jul 4, 2008 at 4:45 PM, David Chelimsky [EMAIL PROTECTED] wrote: So - how bad do you think this would suck to remove that feature? Are you using it yourself?