Re: [rspec-users] Autotest Doesn't Run Old Test::Unit Tests After Install
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 modify the mappings between subject files and the tests and examples that drive them. Check out http://blog.davidchelimsky.net/2008/1/15/rspec-1-1-2-and-zentest-3-8-0 and the ZenTest documentation for pointers on this. Thanks David, that looks like plenty to go on. I can run autotest and autospec in two different terminals for the time being I guess, and when I gather the gumption I'll blaze into the ~/.autotest stuff. cheers, Matt -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Spec Server on Windows - missing fork
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 slam-dunk to use, and I know people who don't use it because of various problems, but it's worth working through those problems, especially if you do T/BDD. Yes, is a hidden gem but also have is own glitches. One is the lack of possiblity to actually quit gracefully (they need to trap INT and properly stop the DRb server. Patches welcome! I will!! I'm not complaining, but giving a warning ;-) I need to find it the time, so maybe around next week will have a few hours to setup the environment and provide a patch for it. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
[rspec-users] Straw Poll: How are you using plain text stories (in rails)?
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 controllers, views and models, with splendid isolation using the mocking framework. I've yet to write any 'integrations tests', in fact I'm not yet clear how much value they have. What originally attracted me to rspec was hearing Dan North talk about the plain text stories, and I had some fun in my previous life as a C# programmer using them to drive watir tests of an ASP.NET app. What I'm not sure about is how they're most appropriately used in rails. Are people generally using them, as I was in the .NET world, to drive selenium/watir acceptance tests, or do they have value as replacements to the rails 'integration tests'? How about webrat? or some other glue / tool that I haven't heard of yet? Just a quick answer from anyone out there using these tools would be great in order to get a feel for the current state of the art, and some fresh fuel for my googling! Sorry if this post is a bit rambling... thanks for bearing with me as I scramble up the learning curve! cheers, Matt -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] [ANN/ADV] Scripted GUI Testing With Ruby book (uses RSpec)
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. http://www.pragprog.com/titles/idgtr The book uses RSpec heavily throughout (both example notation and the Story Runner) as it builds up a series of user interface tests for desktop (Win32, Swing, OS X) and Web apps. Couldn't have done it without the beauty of RSpec to look up to as a role model. So thanks, David and crew. Enjoy! --Ian ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] [ANN/ADV] Scripted GUI Testing With Ruby book (uses RSpec)
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 switch to make my new book, Scripted GUI Testing With Ruby, available for purchase in both PDF and analog. http://www.pragprog.com/titles/idgtr The book uses RSpec heavily throughout (both example notation and the Story Runner) as it builds up a series of user interface tests for desktop (Win32, Swing, OS X) and Web apps. Couldn't have done it without the beauty of RSpec to look up to as a role model. So thanks, David and crew. Enjoy! --Ian ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?
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 - what's the difference? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
[rspec-users] How to consolidate old_project/test/* with new_project/spec/*?
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 ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?
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 just like webrat. It does the JS by using Rhino, Java's implementation of JS. At the moment, webrat is tied to rails integration testing framework (their are forks that allow merb testing as well that I have used successfully.) As Joseph said their is currently some work to wrap the webrat API around Selenuin, mechanize, etc, that would break it's dependence on the integration testing framework in rails. Having it tied to the integration framework does give you some flexibility though and is most likely faster. To answer your original question on how people are using it... In the past project I did I ended up with 100+ scenarios all using webrat. We decided to make the entire site with UJS (unobtrusive JS) which lent it self to testing it with webrat. The extra JS we added we have not yet wrapped stories around it so we have a manual testing cycle before each major deployment. On the current project I'm on we are going to be using JS heavily and will most likely leverage HtmlUnit (Celerity) in our stories to keep them all in-memory. If your app is not extremely JS dependent then I would recommend the UJS + webrat route. @Joseph 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 :) Have you seen Johnson yet? http://github.com/jbarnette/johnson/tree/master It's goal is to wrap Mozilla's JS engine written in C, SpiderMonkey, in ruby. With this equivalent solution in place like Java's Rhino it will be possible to create an HtmlUnit like testing framwork entirely in Ruby and perhaps just extend webrat to get JS functionality. I have not yet realll played around with it and I haven't been able to find any posts about how to use it.. but it is something to keep your eye on. Johnson seems young so, as I said earlier, we will probably try to use the more mature HtmlUnit (a'la JRuby) to do our in-memory JS testing. -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?
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 have wound up deleting many of my view tests (and don't use Rails integration tests at all). So, essentially, what it's boiling down to for me, is that I have my examples for models, and then use stories for everything else. There have been a few tricky cases to do with stories, but otherwise I just like it far better, and feel it's a much better and more effective way to test since it's going to emulate what really happens on your site. One of the things that's driven me to using stories so much more is the fragile nature of the other tests, in that it seems like view and controller tests break so much more easily with various changes, whereas stories don't. This likely depends on how much you test the precise text and such on a page. On Wed, Aug 6, 2008 at 3:12 AM, Matt Wynne [EMAIL PROTECTED] wrote: 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 controllers, views and models, with splendid isolation using the mocking framework. I've yet to write any 'integrations tests', in fact I'm not yet clear how much value they have. What originally attracted me to rspec was hearing Dan North talk about the plain text stories, and I had some fun in my previous life as a C# programmer using them to drive watir tests of an ASP.NET app. What I'm not sure about is how they're most appropriately used in rails. Are people generally using them, as I was in the .NET world, to drive selenium/watir acceptance tests, or do they have value as replacements to the rails 'integration tests'? How about webrat? or some other glue / tool that I haven't heard of yet? Just a quick answer from anyone out there using these tools would be great in order to get a feel for the current state of the art, and some fresh fuel for my googling! Sorry if this post is a bit rambling... thanks for bearing with me as I scramble up the learning curve! cheers, Matt -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users -- Christopher Bailey Cobalt Edge LLC http://cobaltedge.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
[rspec-users] Granularity in stories (was Straw Poll: How are you using plain text stories (in rails)?)
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 down to for me, is that I have my examples for models, and then use stories for everything else. There have been a few tricky cases to do with stories, but otherwise I just like it far better, and feel it's a much better and more effective way to test since it's going to emulate what really happens on your site. I've not used stories in anger yet (although my current personal project is gathering a large selection of text stories as I think of new functionality). The thing that's been holding me back is the granularity. Do you try and write a scenario for every possible case? For example, if my story was about signing up for an account, would you write a sign up story with scenarios for success and scenarios for failure (and let your controller/model specs deal with the individual reasons that the signup may fail) or would you have scenarios for username is taken, password and confirmation do not match etc (effectively making the other tests slightly redundant, as Christopher mentioned)? Cheers, Baz. Rahoul Baruah Web design and development: http://www.3hv.co.uk/ Nottingham Forest: http://www.eighteensixtyfive.co.uk/ Serious Rails Hosting: http://www.brightbox.co.uk/ Lifecast: http://www.madeofstone.net/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Granularity in stories (was Straw Poll: How are you using plain text stories (in rails)?)
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 a subtlety I'm only just getting my head around, but there's a wealth of useful experience behind these posts. cheers, Matt -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Granularity in stories (was Straw Poll: How are you using plain text stories (in rails)?)
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 behind these posts. Thanks Matt (and Ben), that's very helpful. I'm definitely in the declarative, token for conversation camp then. So I would write a scenario for success and one for failure and let my models (and/or controllers) deal with what failure actually means. Heh, I like this stuff - it's got me enthused about programming in a way that haven't been since I first came across Rails. B. Rahoul Baruah Web design and development: http://www.3hv.co.uk/ Nottingham Forest: http://www.eighteensixtyfive.co.uk/ Serious Rails Hosting: http://www.brightbox.co.uk/ Lifecast: http://www.madeofstone.net/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
[rspec-users] hash_excluding/hash_only?
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 rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Straw Poll: How are you using plain text stories (in rails)?
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 http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] [ANN/ADV] Scripted GUI Testing With Ruby book (uses RSpec)
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?
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 wanted to say that if there isn't, writing your own matcher is super easy. ///ark ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
[rspec-users] old plugin points to old docs to explain how to upgrade to new plugin
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 details aren't there anymore; they're over at rspec.info. Maybe the old URL should redirect? Jay Levitt ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
[rspec-users] Someone please name this matcher for me
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 anyone's opinion. btw, I realize that .sort works in this case. But that's slightly less clear than I'd like, and it doesn't work for non-Comparable objects (like activerecords). Pat ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
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 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 anyone's opinion. btw, I realize that .sort works in this case. But that's slightly less clear than I'd like, and it doesn't work for non-Comparable objects (like activerecords). Pat ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
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, 3, 4, 1].should include_all [1, 3, 1, 4, 2] ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
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 a couple ideas for names, but I'll hold off on them so I don't influence anyone's opinion. btw, I realize that .sort works in this case. But that's slightly less clear than I'd like, and it doesn't work for non-Comparable objects (like activerecords). [1, 2, 3, 4, 1].should consist_of([1, 3, 1, 4, 2]) Since consist means to be composed or made up of, which matches the usage. To me it reads like, this thing should be made up of these other things. WDYT? -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
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 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 a couple ideas for names, but I'll hold off on them so I don't influence anyone's opinion. btw, I realize that .sort works in this case. But that's slightly less clear than I'd like, and it doesn't work for non-Comparable objects (like activerecords). [1, 2, 3, 4, 1].should consist_of([1, 3, 1, 4, 2]) Since consist means to be composed or made up of, which matches the usage. To me it reads like, this thing should be made up of these other things. WDYT? -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
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 possibly multiple occurrences of its members is known in mathematics as a multiset, or, informally, a bag. -Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
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/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
.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 how it would look [1, 2, 3, 4, 1].should ... [1, 3, 1, 4, 2] An unordered collection with possibly multiple occurrences of its members is known in mathematics as a multiset, or, informally, a bag. -Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
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 in mind. Or was it? And include_all_and_nothing_but is a bit verbose. :) -- Tero Tilus ## 050 3635 235 ## http://www.tilus.net/koti/tero/ ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] hash_excluding/hash_only?
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 certain values? I'm just on my way out the door, but just wanted to say that if there isn't, writing your own matcher is super easy. ///ark Yeah, I just wanted to make sure the functionality didn't exist before I wrote my own. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] How to consolidate old_project/test/* with new_project/spec/*?
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 everything? In your test_helper.rb file, require 'spec' after requiring 'test/unit' and rspec will run your tests for you. Cheers, David Many thanks! -- http://www.home.no/reddvinylene ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users
Re: [rspec-users] Someone please name this matcher for me
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-users
Re: [rspec-users] hash_excluding/hash_only?
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 doesn't have certain values? How about using should_not to ensure it doesn't have these values? Jony I'm just on my way out the door, but just wanted to say that if there isn't, writing your own matcher is super easy. ///ark Yeah, I just wanted to make sure the functionality didn't exist before I wrote my own. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users