Re: [rspec-users] Question: Define custom matcher like raise_error, by Matchers.define

2010-11-28 Thread Kaoru Kobo
David Thanks! Actually, match_unless_raises is probably the best solution for your issue. Then I found this page: ”Upgrade to 1.3.0 - Matcher DSL" Upgrade.rdoc at master from dchelimsky's rspec - GitHub http://github.com/dchelimsky/rspec/blob/master/Upgrade.rdoc and, I found the tentativ

Re: [rspec-users] rspec-2.2 is released!

2010-11-28 Thread Jonathan Linowes
David, it's been a while since I said Thank You, so I just want to say Thank You for everything you do for rspec. :) --linoj On Nov 28, 2010, at 5:35 PM, David Chelimsky wrote: > ### rspec-core-2.2.0 > > [full changelog](http://github.com/rspec/rspec-core/compare/v2.1.0...master) > > * Depre

[rspec-users] rspec-2.2 is released!

2010-11-28 Thread David Chelimsky
### rspec-core-2.2.0 [full changelog](http://github.com/rspec/rspec-core/compare/v2.1.0...master) * Deprecations/changes * --debug/-d on command line is deprecated and now has no effect * win32console is now ignored; Windows users must use ANSICON for color support (Bosko Ivanisevic) *

Re: [rspec-users] no such file to load - spec/test/unit

2010-11-28 Thread David Chelimsky
On Nov 25, 2010, at 11:44 AM, James Palmer wrote: > Under the older version of rspec, I'm able to run my script successfully > by running "spec randomperform.rb" > > I've now installed the newest rspec, and it does not work for me. If I > run the command: > > rspec randomperform.rb > > I get t

Re: [rspec-users] Question: Define custom matcher like raise_error, by Matchers.define

2010-11-28 Thread David Chelimsky
On Nov 25, 2010, at 7:16 PM, Kaoru Kobo wrote: > Then I found this page: > > ”Upgrade to 1.3.0 - Matcher DSL" > Upgrade.rdoc at master from dchelimsky's rspec - GitHub > http://github.com/dchelimsky/rspec/blob/master/Upgrade.rdoc > > > and, I found the tentative solution: > (Is there the better

Re: [rspec-users] stub_chain together with should_receive

2010-11-28 Thread David Chelimsky
On Nov 28, 2010, at 2:06 AM, medihack wrote: >> That's my 2¢, but feel free to try to convince me otherwise :) > > Ok, I'll give my best ... how about a dollar? ;-) > >> I understand that chains like this are common in Rails apps thanks to good >> ideas like composable finders (which generally

[rspec-users] [Sinatra] "tried to create Proc object without a block"

2010-11-28 Thread jtanium
Hello all, I'm a long time Ruby and Rails user, but new to RSpec; I've been using Shoulda instead. I picked up the book "Service-Oriented Design with Ruby and Rails" (http://amzn.to/9sgx99) which uses RSpec throughout. Despite being published only a few months ago, it's already out of date. Here

Re: [rspec-users] stub_chain together with should_receive

2010-11-28 Thread medihack
> That's my 2¢, but feel free to try to convince me otherwise :) Ok, I'll give my best ... how about a dollar? ;-) > I understand that chains like this are common in Rails apps thanks to good > ideas like composable finders (which generally do not violate Demeter), but I > don't think the paral