Re: [rspec-users] Autotest Doesn't Run Old Test::Unit Tests After Install

2008-08-06 Thread Matt Wynne
David Chelimsky wrote: The latest rspec code in git introduces an autospec command that runs specs, leaving autotest to run the stuff in the test directory. This doesn't solve your problem, but might be useful information. To run both tests and specs you'll have to add a .autotest file and

Re: [rspec-users] Spec Server on Windows - missing fork

2008-08-06 Thread Luis Lavena
On Wed, Aug 6, 2008 at 6:04 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Sat, Aug 2, 2008 at 3:43 PM, Luis Lavena [EMAIL PROTECTED] wrote: On Sat, Aug 2, 2008 at 9:04 PM, Mark Wilden [EMAIL PROTECTED] wrote: spec_server is one of the hidden gems of the RSpec world. It's not completely a

[rspec-users] Straw Poll: How are you using plain text stories (in rails)?

2008-08-06 Thread Matt Wynne
Hi all, I've been using rspec / rails for just over a week now, and I'm loving the specification framework. The way I can group examples together feels really natural, and I'm finding the TDD flow terrific. Thus far I've used the describe / it should... syntax to basically do TDD of my

Re: [rspec-users] [ANN/ADV] Scripted GUI Testing With Ruby book (uses RSpec)

2008-08-06 Thread Jonathan Linowes
Ian, sounds like your espresso machine needs some gui testing... :) On Aug 6, 2008, at 12:47 AM, Ian Dees wrote: Hi, all. The publishers have just thrown the switch to make my new book, Scripted GUI Testing With Ruby, available for purchase in both PDF and analog.

Re: [rspec-users] [ANN/ADV] Scripted GUI Testing With Ruby book (uses RSpec)

2008-08-06 Thread David Chelimsky
On Wed, Aug 6, 2008 at 7:24 AM, Jonathan Linowes [EMAIL PROTECTED] wrote: Ian, sounds like your espresso machine needs some gui testing... Hmmm ... gui espresso? I prefer mine a bit more watiry. :) On Aug 6, 2008, at 12:47 AM, Ian Dees wrote: Hi, all. The publishers have just thrown the

Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?

2008-08-06 Thread Matt Wynne
Joseph Wilk wrote: If you are using JRuby a nice tool which wraps the Java HtmlUnit is Celerity: http://celerity.rubyforge.org/ At the moment I'm yet to see something like HtmlUnit on the ruby platform. I watch Celerity in envy :) Interesting. On the surface HtmlUnit looks just like webrat

[rspec-users] How to consolidate old_project/test/* with new_project/spec/*?

2008-08-06 Thread Redd Vinylene
Hello everybody:) I'm new to this, but how should I go about consolidating old_project/test/* with new_project/spec/*? Here is the contents of my old_project/test/* -- http://pastie.org/248453 Would I have to rewrite everything? Many thanks! -- http://www.home.no/reddvinylene

Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?

2008-08-06 Thread Ben Mabey
Matt Wynne wrote: Interesting. On the surface HtmlUnit looks just like webrat - what's the difference? HtmlUnit is quite different. It is a language/framework agnostic way to test any webapp *including* the app's JS. All of this, even the JS, is in memory and does not require a browser

Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?

2008-08-06 Thread Christopher Bailey
I'm using stories with Webrat, and really like it. As mentioned, it doesn't cover the JavaScript bit, but so far that's ok, we don't have enough that I can't just test it manually (dread!). But, yes, since starting to use stories, I'd guess I've written maybe two or three controller tests, and

[rspec-users] Granularity in stories (was Straw Poll: How are you using plain text stories (in rails)?)

2008-08-06 Thread Rahoul Baruah
Hi all. On 6 Aug 2008, at 15:47, Christopher Bailey wrote: But, yes, since starting to use stories, I'd guess I've written maybe two or three controller tests, and have wound up deleting many of my view tests (and don't use Rails integration tests at all). So, essentially, what it's boiling

Re: [rspec-users] Granularity in stories (was Straw Poll: How are you using plain text stories (in rails)?)

2008-08-06 Thread Matt Wynne
Rahoul Baruah wrote: The thing that's been holding me back is the granularity. Do you try and write a scenario for every possible case? It might help to have a look at the thread that starts here: http://www.benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories/ Its

Re: [rspec-users] Granularity in stories (was Straw Poll: How are you using plain text stories (in rails)?)

2008-08-06 Thread Rahoul Baruah
On 6 Aug 2008, at 16:18, Matt Wynne wrote: It might help to have a look at the thread that starts here: http://www.benmabey.com/2008/05/19/imperative-vs-declarative- scenarios-in-user-stories/ Its a subtlety I'm only just getting my head around, but there's a wealth of useful experience

[rspec-users] hash_excluding/hash_only?

2008-08-06 Thread Steve
I know there is a hash_including, which is quite useful. Are there by chance any matchers for ensuring a hash includes only the specified values, or that it doesn't have certain values? Thanks, Steve ___ rspec-users mailing list

Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?

2008-08-06 Thread Matt Wynne
Note that there's also some existing discussion on this list that I just found (with a search for 'RailsStory'): http://www.ruby-forum.com/topic/156930#new -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] [ANN/ADV] Scripted GUI Testing With Ruby book (uses RSpec)

2008-08-06 Thread Ian Dees
Ian, sounds like your espresso machine needs some gui testing... Hmmm ... gui espresso? I prefer mine a bit more watiry. What, no Mocha jokes? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] hash_excluding/hash_only?

2008-08-06 Thread Mark Wilden
On Wed, Aug 6, 2008 at 9:22 AM, Steve [EMAIL PROTECTED] wrote: I know there is a hash_including, which is quite useful. Are there by chance any matchers for ensuring a hash includes only the specified values, or that it doesn't have certain values? I'm just on my way out the door, but just

[rspec-users] old plugin points to old docs to explain how to upgrade to new plugin

2008-08-06 Thread Jay Levitt
I was using Ben Mabey's tutorial, which includes an older RSpec on Rails (20080131122909) plugin, and thus reported that it was incompatible with my 1.1.4 gem. It tries to be helpful, and says: See http://rspec.rubyforge.org/documentation/rails/install.html for details. But, of course, the

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

2008-08-06 Thread Pat Maddox
I've had a matcher in my head for a couple months, that I frequently want but never get around to writing because I can't think of the name for it. Here's how it would look [1, 2, 3, 4, 1].should ... [1, 3, 1, 4, 2] I have a couple ideas for names, but I'll hold off on them so I don't influence

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

2008-08-06 Thread Jonathan Linowes
perhaps verbose but how about foo.should equal_in_any_order [1, 3, 1, 4, 2] On Aug 6, 2008, at 1:50 PM, Pat Maddox wrote: I've had a matcher in my head for a couple months, that I frequently want but never get around to writing because I can't think of the name for it. Here's how it

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

2008-08-06 Thread Mike Vincent
On Wed, Aug 6, 2008 at 12:50 PM, Pat Maddox [EMAIL PROTECTED] wrote: I've had a matcher in my head for a couple months, that I frequently want but never get around to writing because I can't think of the name for it. Here's how it would look [1, 2, 3, 4, 1].should ... [1, 3, 1, 4, 2] [1, 2,

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

2008-08-06 Thread Zach Dennis
On Wed, Aug 6, 2008 at 1:50 PM, Pat Maddox [EMAIL PROTECTED] wrote: I've had a matcher in my head for a couple months, that I frequently want but never get around to writing because I can't think of the name for it. Here's how it would look [1, 2, 3, 4, 1].should ... [1, 3, 1, 4, 2] I have

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

2008-08-06 Thread Cohen, Joseph
Consider: should_have_the_same_members_as -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zach Dennis Sent: Wednesday, August 06, 2008 11:15 AM To: rspec-users Subject: Re: [rspec-users] Someone please name this matcher for me On Wed, Aug 6, 2008 at

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

2008-08-06 Thread Steve Schafer
On Wed, 6 Aug 2008 13:50:27 -0400, you wrote: I've had a matcher in my head for a couple months, that I frequently want but never get around to writing because I can't think of the name for it. Here's how it would look [1, 2, 3, 4, 1].should ... [1, 3, 1, 4, 2] An unordered collection with

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

2008-08-06 Thread Matt Wynne
How about [1, 2, 3, 4, 1].should contain([1, 3, 1, 4, 2]) [1, 2, 3, 4, 1].should contain_only([1, 3, 1, 4, 2]) or (riffing off Zach) [1, 2, 3, 4, 1].should be_composed_from([1, 3, 1, 4, 2]) Matt -- Posted via http://www.ruby-forum.com/. ___

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

2008-08-06 Thread Jonathan Linowes
.should be_bag_of( [1, 3, 1, 4, 2] ) On Aug 6, 2008, at 2:33 PM, Steve Schafer wrote: On Wed, 6 Aug 2008 13:50:27 -0400, you wrote: I've had a matcher in my head for a couple months, that I frequently want but never get around to writing because I can't think of the name for it. Here's

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

2008-08-06 Thread Tero Tilus
2008-08-06 13:11, Mike Vincent: [1, 2, 3, 4, 1].should ... [1, 3, 1, 4, 2] [1, 2, 3, 4, 1].should include_all [1, 3, 1, 4, 2] I'd then think that [1, 1, 1, 2, 3, 4].should include_all [1, 3, 1, 4, 2] [1, 2, 3, 4, 5, 6].should include_all [1, 3, 1, 4, 2] Which afaik was not what Pat had

Re: [rspec-users] hash_excluding/hash_only?

2008-08-06 Thread Steve
Mark Wilden wrote: On Wed, Aug 6, 2008 at 9:22 AM, Steve [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I know there is a hash_including, which is quite useful. Are there by chance any matchers for ensuring a hash includes only the specified values, or that it doesn't have

Re: [rspec-users] How to consolidate old_project/test/* with new_project/spec/*?

2008-08-06 Thread David Chelimsky
On Wed, Aug 6, 2008 at 8:57 AM, Redd Vinylene [EMAIL PROTECTED] wrote: Hello everybody:) I'm new to this, but how should I go about consolidating old_project/test/* with new_project/spec/*? Here is the contents of my old_project/test/* -- http://pastie.org/248453 Would I have to rewrite

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

Re: [rspec-users] hash_excluding/hash_only?

2008-08-06 Thread Jony dos Santos Kostetzer
Steve wrote: Mark Wilden wrote: On Wed, Aug 6, 2008 at 9:22 AM, Steve [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I know there is a hash_including, which is quite useful. Are there by chance any matchers for ensuring a hash includes only the specified values, or that it