[rspec-users] OT: Identifying unused code?

2010-02-10 Thread Alex Satrapa
I'm sure this has been covered before, but after some time all I've been able to find on the intarwebs are references to the use of code coverage tests to identify code that is not used by any current tests. I guess the assumption is that you've specced your application completely, and any code

Re: [rspec-users] validate_presence_of

2009-02-18 Thread Alex Satrapa
On 19/02/2009, at 14:05 , David Chelimsky wrote: Why not start w/ RSpec but do it right? I made the mistake of showing the guy a spec from a previous project and narrating (not showing) how the code was built from the spec. So the manager didn't realise that the spec was built one line at

Re: [rspec-users] validate_presence_of

2009-02-18 Thread Alex Satrapa
On 19/02/2009, at 13:02 , Zach Dennis wrote: I have never seen or heard of anyone who writes a spec (developer level RSpec spec), but not the code and then hands it over to someone else and demands that that person implements it. The fun begins when you can point out two or three conflicting

Re: [rspec-users] validate_presence_of

2009-02-18 Thread Alex Satrapa
On 19/02/2009, at 11:39 , Fernando Perez wrote: What's the point in testing validates_presence_of for a model? It's already tested in the framework, and so readable that a quick glance on the model says it all. Some people want the spec to stand as a contract, so you can then hand the spe

Re: [rspec-users] Childrens book

2009-01-14 Thread Alex Satrapa
On 15/01/2009, at 10:31 , aslak hellesoy wrote: So I'm starring in a childrens' book with a cuke. Watch out! That cucumber is a Perl evangelist! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-use

Re: [rspec-users] Constraints / Global requirements

2009-01-13 Thread Alex Satrapa
On 14/01/2009, at 09:17 , Zach Dennis wrote: The only recommendation I have is for people to not remove the portion of the email they are responding to, and to keep their response close in approximation to what they are responding to. A: Because it messes up the order in which people normally

Re: [rspec-users] Caboosers drop RSpec

2008-11-05 Thread Alex Satrapa
On 05/11/2008, at 01:37 , Steven Baker wrote: Big difference between "haven't been able to" and "wouldn't learn the tools". Ashley's post below sums it up best. This is a problem that's seen regularly when working with new ideas. How many times have you seen Agile blamed when a project f

Re: [rspec-users] Someone please name this matcher for me

2008-08-06 Thread Alex Satrapa
On 07/08/2008, at 05:04 , Jonathan Linowes wrote: .should be_bag_of( [1, 3, 1, 4, 2] ) FWIW, I am in favour of this naming. Now back to lurking :) ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-user

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Alex Satrapa
On 08/07/2008, at 04:25 , yitzhakbg wrote: Just had a discussion with a prospective employer, a Ruby On Rails shop. His reaction to BDD development on every project was skeptical, saying something like: "It depends on the project". "Some jobs are so short that the extra time invested in de

Re: [rspec-users] newb q: Can story steps report a view rendering error?

2008-04-02 Thread Alex Satrapa
On 03/04/2008, at 10:09 , Tim Haines wrote: > For now I can add response.code.should == "200" or something similar.. The page returned by Rails to provide you with the stack trace and stuff? That is a valid HTML page, and it comes along with a HTTP 200 OK response. What you need to do is loo

Re: [rspec-users] How to dump contents produced during spec evaluation?

2008-02-24 Thread Alex Satrapa
On 25/02/2008, at 11:42 , David Chelimsky wrote: > Steve - it's because of isolation - I pointed Alex to the docs. Yup, I'm having a low-caffeine day apparently. I'm going to great pains to isolate just the portions of the controller that need to be designed (using mocks and stubs), then slap

Re: [rspec-users] How to dump contents produced during spec evaluation?

2008-02-24 Thread Alex Satrapa
On 25/02/2008, at 10:58 , David Chelimsky wrote: > On Sun, Feb 24, 2008 at 5:54 PM, Alex Satrapa > <[EMAIL PROTECTED]> wrote: >> In the ResourceController spec, I have the following happening: >> post( :create, :resource => request_attrs ) >> response

[rspec-users] How to dump contents produced during spec evaluation?

2008-02-24 Thread Alex Satrapa
In a story, I have the following happening: post("/resources/", 'resource' => request_attrs) response.should render_template('resource/new') response.should have_tag('*', /must have one or more X defined/) In the ResourceController spec, I have the following happening: post( :c

Re: [rspec-users] Generated rspec video

2008-02-11 Thread Alex Satrapa
On 12/02/2008, at 14:07 , [EMAIL PROTECTED] wrote: > A sneak preview of what I've been doing with my patch that made it > into rspec 1.1.3: >http://chmeee.dyndns.org/ruby/R-Spec%20Demo.avi What format is that video? I've got DivX and various others loaded, but none of them want to work on t

Re: [rspec-users] Spam Protection

2008-01-20 Thread Alex Satrapa
On 19/01/2008, at 05:27 , Mark Wilden wrote: > What's weird is that I've been using the same email address since > 1996, I've > turned off spam filtering by my ISP, and yet I get very, very > little spam > these days (maybe 1-2/day). I've been using the same address since 1994, and every time

Re: [rspec-users] "should_not ==" vs "should !="

2008-01-20 Thread Alex Satrapa
On 19/01/2008, at 17:36 , David Chelimsky wrote: > When you say 5 == 3, what that is really saying is 5.==(3), which is > how we're able to support 5.should == 3 (becomes 5.should.==(3)). Would it be true to say that the reason "5.should != 3" won't work is that somewhere inside Ruby the x != y