Re: [rspec-users] Getting annotations in spec files.

2008-06-02 Thread Ashley Moran
On 2 Jun 2008, at 04:29, T K wrote: I just noticed that `rake notes` in rails 2.0.2 doesn't check `spec` directory. So, what I annotated with FIXME, TODO and OPTIMIZE on *_spec.rb are discarded. Is there any quick way to `rake notes` task to check `spec` directory? You could redefine the

[rspec-users] GiT and RSpec

2008-06-02 Thread James B. Byrne
Message: 2 Date: Thu, 29 May 2008 06:35:01 -0700 From: David Chelimsky [EMAIL PROTECTED] Subject: Re: [rspec-users] Coloured output in rspec 1.1.4 To: rspec-users@rubyforge.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On May 29,

Re: [rspec-users] != again

2008-06-02 Thread Rick DeNatale
On Sun, Jun 1, 2008 at 10:13 PM, Scott Taylor [EMAIL PROTECTED] wrote: On Jun 1, 2008, at 4:55 PM, David Chelimsky wrote: RSpec is already getting dinged for being slower than test/unit. Making it run any slower than it already does is a deal breaker for me. It seems perfectly reasonable

[rspec-users] get method under 1.1.4 in Stories is undefined

2008-06-02 Thread Ed Howland
HI, After I upgraded to RSpec 1.1.4 (from git), my stories all failed. I was using Webrat and the first thing I noticed was the 'visits' method was gone. I then backtracked to just using 'get' and got the same undefined method exception. I confirmed it was still working in 1.1.3 Eventually, I

Re: [rspec-users] get method under 1.1.4 in Stories is undefined

2008-06-02 Thread Pat Maddox
On Mon, Jun 2, 2008 at 11:06 AM, Ed Howland [EMAIL PROTECTED] wrote: HI, After I upgraded to RSpec 1.1.4 (from git), my stories all failed. I was using Webrat and the first thing I noticed was the 'visits' method was gone. I then backtracked to just using 'get' and got the same undefined

[rspec-users] Cherry-picking mocks?!

2008-06-02 Thread Rick DeNatale
A colleague just came in and asked me about a problem he was having with stub_render, which reminded me of another issue he had a week or so ago, which seems related. Let me start with the earlier issue. He was trying to write specs for a method which sends the same message possibly multiple

Re: [rspec-users] Pretty HTML reporting for stories

2008-06-02 Thread Ben Mabey
Matt Wynne wrote: Hi all, I'm just getting to grips with rspec, and I'm trying to put together a showy demo. We're trying to use the (plain text) stories feature, rather than the specs. I'd like to show off a fancy HTML report of the results if possible. So it seems I can do this from the spec

[rspec-users] Pretty HTML reporting for stories

2008-06-02 Thread Matt Wynne
Hi all, I'm just getting to grips with rspec, and I'm trying to put together a showy demo. We're trying to use the (plain text) stories feature, rather than the specs. I'd like to show off a fancy HTML report of the results if possible. So it seems I can do this from the spec command line tool,

Re: [rspec-users] Pretty HTML reporting for stories

2008-06-02 Thread Ben Mabey
David Chelimsky wrote: On Jun 2, 2008, at 11:28 AM, Matt Wynne wrote: Hi all, I'm just getting to grips with rspec, and I'm trying to put together a showy demo. We're trying to use the (plain text) stories feature, rather than the specs. I'd like to show off a fancy HTML report of the results

Re: [rspec-users] get method under 1.1.4 in Stories is undefined

2008-06-02 Thread Ed Howland
Yes, that was it. Thanks Ed On Mon, Jun 2, 2008 at 1:10 PM, Pat Maddox [EMAIL PROTECTED] wrote: On Mon, Jun 2, 2008 at 11:06 AM, Ed Howland [EMAIL PROTECTED] wrote: HI, After I upgraded to RSpec 1.1.4 (from git), my stories all failed. I was using Webrat and the first thing I noticed was

Re: [rspec-users] Pretty HTML reporting for stories

2008-06-02 Thread Matt Wynne
Ben Mabey wrote: The spec command is just for specs. Although the story runner now uses the same command line option parser. So you can pass in the args when running your runner file. Like so: ruby story.rb -f=html or the verbose way: ruby story.rb --format=html Man, you gentlemen are

[rspec-users] Looking for help on two issues with Rails 2.1 and RSpec 1.14

2008-06-02 Thread Steve Downey
I have specs that ran fine in Rails 2.02/RSpec 1.13 that are failing on Rails 2.1/RSpec 1.14. There is one problem and one issue: problem: sometimes (but not always) I get a NoMethodError referencing a has_many association issue: in helper specs, instance variables don't get set unless the

Re: [rspec-users] Pretty HTML reporting for stories

2008-06-02 Thread David Chelimsky
On Jun 2, 2008, at 12:20 PM, Matt Wynne [EMAIL PROTECTED] wrote: Ben Mabey wrote: The spec command is just for specs. Although the story runner now uses the same command line option parser. So you can pass in the args when running your runner file. Like so: ruby story.rb -f=html or the

Re: [rspec-users] Pretty HTML reporting for stories

2008-06-02 Thread Ben Mabey
David Chelimsky wrote: On Jun 2, 2008, at 12:20 PM, Matt Wynne [EMAIL PROTECTED] wrote: Ben Mabey wrote: The spec command is just for specs. Although the story runner now uses the same command line option parser. So you can pass in the args when running your runner file. Like so: ruby

Re: [rspec-users] Looking for help on two issues with Rails 2.1 and RSpec 1.14

2008-06-02 Thread Ben Mabey
Steve Downey wrote: I have specs that ran fine in Rails 2.02/RSpec 1.13 that are failing on Rails 2.1/RSpec 1.14. There is one problem and one issue: problem: sometimes (but not always) I get a NoMethodError referencing a has_many association issue: in helper specs, instance variables

[rspec-users] Cannot log in/authenticate within RSpec Story

2008-06-02 Thread Ben Men
I've been slamming my head against a wall for a while now, and would like some help. I believe this is session related. I have a story that looks like: -- Given that a post exists And I am logged in When I visit the post details page

Re: [rspec-users] Cannot log in/authenticate within RSpec Story

2008-06-02 Thread Ben Mabey
Ben Men wrote: I've been slamming my head against a wall for a while now, and would like some help. I believe this is session related. I have a story that looks like: -- Given that a post exists And I am logged in When I visit the