[rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread Greg Hauptmann
Hi, I've got the rspec gem installed, as well as the two plugins rspec rspec-rails. I can't remember which is actual used and which isn't for my rails app when I go rake spec? Anyone know? Could I remove either of the core rpec gem OR the rspec plugin? or do I need all three components? Tks

Re: [rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread aslak hellesoy
On Fri, Nov 7, 2008 at 12:56 PM, aslak hellesoy [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 11:23 AM, Greg Hauptmann [EMAIL PROTECTED] wrote: so just to be clear are you saying: * rspec gem = All that is need for Ruby on Rails Rspec work * 'rspec plugin' = not needed (functionality in

Re: [rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread Fernando Perez
forgot to clarify - for rails development you'll need both rspec and rspec-rails. What I meant is that you can go plugin-less, you just have to install the two following gems: rspec and rspec-rails, then bootstrap your app by generating a few files. And your set. I personally prefer using

[rspec-users] How to spec a (Trollop-based) binary ’s internal state?

2008-11-07 Thread Shot (Piotr Szotkowski)
I’m trying to spec a ‘binary’, and as previously discussed on this list, I’m trying to do it ‘from outside’ – i.e., by calling it with Kernel#` and observing the (side-)effects. Unfortunately, this doesn’t really let me spec expectations about its internals. Let’s assume I have a -d flag and I

[rspec-users] [Cucumber] The User Story File

2008-11-07 Thread aidy lewis
Hi, The customer is not happy about writing Stories in a text editor. Has anyone else experienced this? Is anyone using a wiki, spreadsheet, or word document and automatically converting to a text file? Thanks Aidy ___ rspec-users mailing list

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Matt Wynne
Are you pairing with them? Can you not just drive and do the typing, asking them questions all the while to keep them engaged? I think David is cooking something up (have a look at his blog) but it might be a while coming. If you can find a Mac, the TextMate text editor has nice syntax

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Joseph Wilk
Andrew Premdas wrote: I'm working on writing features for a wizard. The wizard collects information from a number of different forms, and you can navigate through it in a number of ways. Anyhow one of these forms is a customer form collecting name, and email. In the context of the wizard I

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Matt Wynne
On 7 Nov 2008, at 06:09, Andrew Premdas wrote: I'm working on writing features for a wizard. The wizard collects information from a number of different forms, and you can navigate through it in a number of ways. Anyhow one of these forms is a customer form collecting name, and email. In

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread David Chelimsky
On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote: One technique is to have a single noisy 'declarative' scenario that explicitly walks around filling things in, then all the rest use more 'imperative' style steps where most of the detail is buried away. You've got those

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread aidy lewis
Hi Matt, How are you? On 07/11/2008, Matt Wynne [EMAIL PROTECTED] wrote: Are you pairing with them? Can you not just drive and do the typing, asking them questions all the while to keep them engaged? Cucumber is now the standard here, with all projects using it. The guys who were using Watin

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread David Chelimsky
On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote: One technique is to have a single noisy 'declarative' scenario that explicitly walks around filling things in, then all the rest use more 'imperative'

Re: [rspec-users] [rspec-devel] The RSpec Book

2008-11-07 Thread Luis Lavena
On Fri, Nov 7, 2008 at 12:03 PM, David Chelimsky [EMAIL PROTECTED] wrote: Hey all, I'm pleased to announce that the Pragmatic Bookshelf's The RSpec Book is almost here. The plan is: * beta/pdf in December, 2008 * print in April, 2009 The RSpec Book, authored by me, Dave Astels, Zach

Re: [rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread aslak hellesoy
On Fri, Nov 7, 2008 at 11:23 AM, Greg Hauptmann [EMAIL PROTECTED] wrote: so just to be clear are you saying: * rspec gem = All that is need for Ruby on Rails Rspec work * 'rspec plugin' = not needed (functionality in gem) * 'rspec-rails' plugin = not needed (functionality in gem) is this

[rspec-users] The RSpec Book

2008-11-07 Thread David Chelimsky
Hey all, I'm pleased to announce that the Pragmatic Bookshelf's The RSpec Book is almost here. The plan is: * beta/pdf in December, 2008 * print in April, 2009 The RSpec Book, authored by me, Dave Astels, Zach Dennis, Aslak Hellesøy, Bryan Helmkamp, and Dan North, will comprise material on

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Ben Mabey
Matt Wynne wrote: Are you pairing with them? Can you not just drive and do the typing, asking them questions all the while to keep them engaged? I think David is cooking something up (have a look at his blog) but it might be a while coming. If you can find a Mac, the TextMate text editor

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Matt Wynne
On 7 Nov 2008, at 15:02, David Chelimsky wrote: On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote: One technique is to have a single noisy 'declarative' scenario that explicitly walks around filling

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Joseph Wilk
David Chelimsky wrote: On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote: One technique is to have a single noisy 'declarative' scenario that explicitly walks around filling things in, then all

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Matt Wynne
On 7 Nov 2008, at 14:42, aidy lewis wrote: On 07/11/2008, Matt Wynne [EMAIL PROTECTED] wrote: Are you pairing with them? Can you not just drive and do the typing, asking them questions all the while to keep them engaged? Cucumber is now the standard here, with all projects using it. The

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Andrew Premdas
Joseph, Thanks for your reply, much appreciated. The scenarios don't have titles just for this discussion. Felt including them would be a distraction. I agree that some of the Givens should be Whens in these examples e.g. Given I step to customer When I fill in my customer details

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Andrew Premdas
Matt, Thanks for reply much appreciated and very helpful I'm definitely feeling a need/desire to write features at different levels as you say, and in this case I am trying both, though I haven't quite worked out a nice way of organising things as yet. I definitely want to seperate my 'noisy'

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Aslak Hellesøy
Hi, The customer is not happy about writing Stories in a text editor. Has anyone else experienced this? Is anyone using a wiki, spreadsheet, or word document and automatically converting to a text file? There will be custom editors/wikis with aides like code completion, nice visuals,

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Andrew Premdas
You could try the bundle in the E editor on windows http://www.e-texteditor.com/ 2008/11/7 aidy lewis [EMAIL PROTECTED]: Hi Matt, How are you? On 07/11/2008, Matt Wynne [EMAIL PROTECTED] wrote: Are you pairing with them? Can you not just drive and do the typing, asking them questions all

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Andrew Premdas
+1 for abstract and concrete as it gives an indication of what the story should contain i.e. I should get an error vs I should be told my email must have an @ sign and be ... Andrew 2008/11/7 David Chelimsky [EMAIL PROTECTED]: On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL

Re: [rspec-users] How to spec a (Trollop-based) binary ’s internal state?

2008-11-07 Thread Pat Maddox
Shot (Piotr Szotkowski) [EMAIL PROTECTED] writes: I’m trying to spec a ‘binary’, and as previously discussed on this list, I’m trying to do it ‘from outside’ – i.e., by calling it with Kernel#` and observing the (side-)effects. Unfortunately, this doesn’t really let me spec expectations

Re: [rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread Fernando Perez
Greg Hauptmann wrote: Hi, I've got the rspec gem installed, as well as the two plugins rspec rspec-rails. I can't remember which is actual used and which isn't for my rails app when I go rake spec? Anyone know? Could I remove either of the core rpec gem OR the rspec plugin? or do I

Re: [rspec-users] features and form filling - going declarative?

2008-11-07 Thread Ben Mabey
David Chelimsky wrote: On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote: One technique is to have a single noisy 'declarative' scenario that explicitly walks around filling things in, then all

Re: [rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread Greg Hauptmann
so just to be clear are you saying: * rspec gem = All that is need for Ruby on Rails Rspec work * 'rspec plugin' = not needed (functionality in gem) * 'rspec-rails' plugin = not needed (functionality in gem) is this right? thanks again On Fri, Nov 7, 2008 at 8:10 PM, Fernando Perez [EMAIL

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Joseph Wilk
As Matt said there is no specalised tool for editing Features (Though textmate is great with Bens bundle). If you checkout Cucumbers Milestone 0.2 you will notice ' Provide a REST/AtomPub interface to Cucumber'. The idea of having some sort of wiki interface is something thats in the works for

Re: [rspec-users] rspec gem vs rspec plugin vs rspec-rails plugin ???

2008-11-07 Thread Greg Hauptmann
oh, I hadn't known there was a rspec-rails gem. Thanks On 11/7/08, Fernando Perez [EMAIL PROTECTED] wrote: Greg Hauptmann wrote: Hi, I've got the rspec gem installed, as well as the two plugins rspec rspec-rails. I can't remember which is actual used and which isn't for my rails app when

[rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Greg Hauptmann
-- Sent from my mobile device ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Greg Hauptmann
(woops - full email below) Hi, My rails migrations / mysql database uses Decimal and I've noticed in my rspec when I do a ...should eql(5.5) that they're failing as the expected result here is a float not a decimal. For example see extract below: expected 6.5, got

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Mark Wilden
There's my C roots showing. :) That should be BigDecimal.new('5.5'), of course. On Fri, Nov 7, 2008 at 3:47 PM, Mark Wilden [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann [EMAIL PROTECTED] wrote: expected 6.5, got #BigDecimal:23d8284,'0.65E1',8(8) (using .eql?)

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Mark Wilden
On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann [EMAIL PROTECTED] wrote: expected 6.5, got #BigDecimal:23d8284,'0.65E1',8(8) (using .eql?) How about just expecting BigDecimal('5.5')? ///ark ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Pat Maddox
Greg Hauptmann [EMAIL PROTECTED] writes: Do you mean BigDecimal? Anyway, you should probably be using == instead of eql. 5.5 == BigDecimal.new('5.5') = true 5.5.eql? BigDecimal.new('5.5') = false eql? is object identity and is generally not what you're after. Pat

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Mark Wilden
On Fri, Nov 7, 2008 at 3:51 PM, Pat Maddox [EMAIL PROTECTED] wrote: Greg Hauptmann [EMAIL PROTECTED] writes: Do you mean BigDecimal? Anyway, you should probably be using == instead of eql. 5.5 == BigDecimal.new('5.5') = true 5.5.eql? BigDecimal.new('5.5') = false eql? is object

Re: [rspec-users] Confusion At Failing Specs

2008-11-07 Thread Zach Dennis
On Fri, Nov 7, 2008 at 5:17 PM, Russell Norris [EMAIL PROTECTED] wrote: Zach, Thank you so much. That works for me. I'm still confused why stubbing all calls to :bar on @foo would allow @foo.should_receive(:bar).with(:baz) when this doesn't work though. But I feel like I'm looking a gift

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Greg Hauptmann
in fact I guess I was fishing for an easier way than this...if one exists? or is ruby rspec eql() just strict here in terms of types? On 11/7/08, Mark Wilden [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann [EMAIL PROTECTED] wrote: expected 6.5, got

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Zach Dennis
On Fri, Nov 7, 2008 at 6:24 PM, Greg Hauptmann [EMAIL PROTECTED] wrote: (woops - full email below) Hi, My rails migrations / mysql database uses Decimal and I've noticed in my rspec when I do a ...should eql(5.5) that they're failing as the expected result here is a float not a decimal.

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread Josh Knowles
On Fri, Nov 7, 2008 at 9:24 AM, aidy lewis [EMAIL PROTECTED] wrote: The customer is not happy about writing Stories in a text editor. Has anyone else experienced this? Is anyone using a wiki, spreadsheet, or word document and automatically converting to a text file? As Aslak mentioned there

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Zach Dennis
On Fri, Nov 7, 2008 at 9:12 PM, Greg Hauptmann [EMAIL PROTECTED] wrote: yep - this was recommended on forums over float - why? You are in for a lot of headaches in you application resorting to decimal fields in the database, since it restores them as BigDecimals. It sucks to deal with

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Greg Hauptmann
yep - this was recommended on forums over float - why? On Sat, Nov 8, 2008 at 11:48 AM, Zach Dennis [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 6:24 PM, Greg Hauptmann [EMAIL PROTECTED] wrote: (woops - full email below) Hi, My rails migrations / mysql database uses Decimal and I've

Re: [rspec-users] [Cucumber] The User Story File

2008-11-07 Thread David Chelimsky
On Fri, Nov 7, 2008 at 8:53 PM, Josh Knowles [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 9:24 AM, aidy lewis [EMAIL PROTECTED] wrote: The customer is not happy about writing Stories in a text editor. Has anyone else experienced this? Is anyone using a wiki, spreadsheet, or word document

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Pat Maddox
Greg Hauptmann [EMAIL PROTECTED] writes: in fact I guess I was fishing for an easier way than this...if one exists? or is ruby rspec eql() just strict here in terms of types? On 11/7/08, Mark Wilden [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann [EMAIL

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Greg Hauptmann
thanks Pat - yes I missed it when reading your email - I'd been using .eql for everythingthanks On Sat, Nov 8, 2008 at 2:10 PM, Pat Maddox [EMAIL PROTECTED] wrote: Greg Hauptmann [EMAIL PROTECTED] writes: in fact I guess I was fishing for an easier way than this...if one exists? or is

[rspec-users] should_raise ain't workin' with the `spec` command

2008-11-07 Thread David Beckwith
Hello my fellow RSpeckers, I am using the spec command like this: spec tokyo_record_spec.rb And the for some reason the should_raise Rspec command is not happening with my lambda block: it should raise a NoSuchAttribute error if the attribute 'name' hasn't been declared yet

Re: [rspec-users] any tricks re using eql(5.5), but where 5.5 is a decimal not float?

2008-11-07 Thread Greg Hauptmann
very bizzare but whilst I needed to use this approach to fix one of my tests, I realised the test before was working without having to make it a big decimal - go figure :) it should return last IR when date last interest rate do

Re: [rspec-users] should_raise ain't workin' with the `spec` command

2008-11-07 Thread Matt Wynne
On 8 Nov 2008, at 06:29, David Beckwith wrote: Hello my fellow RSpeckers, I am using the spec command like this: spec tokyo_record_spec.rb And the for some reason the should_raise Rspec command is not happening with my lambda block: it should raise a NoSuchAttribute error