[rspec-users] infoworld article on BDD

2009-06-03 Thread David Chelimsky
infoworld article on BDD http://www.infoworld.com/d/developer-world/behavior-driven-development-catches-605 Good article other than "Behavior" (sans u) and "BDD insists on inside-out." ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyfo

[rspec-users] New Zentest, any feedback?

2009-06-03 Thread Rick DeNatale
So I notice that Ryan released a new zentest gem today. It looks like it has been refactored a bit. Are there any brave guinea pigs/canaries in the RSpec/Cucumber community who have tried it out? Any issues? I do see that someone has been reporting some problems with multiruby which is a part of

[rspec-users] having autospec run tests?

2009-06-03 Thread Joe Van Dyk
Hi, On one project, I have cucumber features and test/unit (well, i guess activesupport::testcase) tests. I really like how: AUTOFEATURE=true autospec works on my projects that use rspec and cucumber. Can I get that same behavior, but with my tests in the tests directory? Joe __

[rspec-users] Mock should receive no messages?

2009-06-03 Thread Sebastian W.
Hello all, Is there a way to explicitly tell a mock to expect no messages and give an error if it does? I believe this is the default behavior, but thought it might be nice for code readers to see. Thank you! -- Posted via http://www.ruby-forum.com/. __

Re: [rspec-users] having autospec run tests?

2009-06-03 Thread Stephen Eley
On Wed, Jun 3, 2009 at 1:01 PM, Joe Van Dyk wrote: > > I really like how: > AUTOFEATURE=true autospec > works on my projects that use rspec and cucumber. > > Can I get that same behavior, but with my tests in the tests directory? Sure. In fact it should work just fine out of the box: do the same

Re: [rspec-users] Mock should receive no messages?

2009-06-03 Thread David Chelimsky
On Wed, Jun 3, 2009 at 12:46 PM, Sebastian W. wrote: > Hello all, > Is there a way to explicitly tell a mock to expect no messages and give > an error if it does? I believe this is the default behavior, but thought > it might be nice for code readers to see. You can tell it to expect not to recei

Re: [rspec-users] Mock should receive no messages?

2009-06-03 Thread Rick DeNatale
On Wed, Jun 3, 2009 at 2:01 PM, David Chelimsky wrote: > On Wed, Jun 3, 2009 at 12:46 PM, Sebastian W. wrote: >> Hello all, >> Is there a way to explicitly tell a mock to expect no messages and give >> an error if it does? I believe this is the default behavior, but thought >> it might be nice fo

Re: [rspec-users] Mock should receive no messages?

2009-06-03 Thread David Chelimsky
On Wed, Jun 3, 2009 at 1:26 PM, Rick DeNatale wrote: > On Wed, Jun 3, 2009 at 2:01 PM, David Chelimsky wrote: >> On Wed, Jun 3, 2009 at 12:46 PM, Sebastian W. wrote: >>> Hello all, >>> Is there a way to explicitly tell a mock to expect no messages and give >>> an error if it does? I believe this

Re: [rspec-users] having autospec run tests?

2009-06-03 Thread Joe Van Dyk
autotest doesn't seem to work for me, for some reason: that file doesn't get loaded when autospec runs. /home/joe/projects/zoolah/vendor/plugins/mocha/lib/mocha/integration/test_unit.rb:17:in `remove_method': method `run' not defined in Test::Unit::TestCase (NameError) from /home/joe/pro

Re: [rspec-users] Mock should receive no messages?

2009-06-03 Thread Sebastian W.
David Chelimsky wrote: > On Wed, Jun 3, 2009 at 12:46 PM, Sebastian W. > wrote: >> Hello all, >> Is there a way to explicitly tell a mock to expect no messages and give >> an error if it does? I believe this is the default behavior, but thought >> it might be nice for code readers to see. > > Yo

Re: [rspec-users] Mock should receive no messages?

2009-06-03 Thread Rick DeNatale
On Wed, Jun 3, 2009 at 2:30 PM, David Chelimsky wrote: > On Wed, Jun 3, 2009 at 1:26 PM, Rick DeNatale wrote: >> On Wed, Jun 3, 2009 at 2:01 PM, David Chelimsky wrote: >>> On Wed, Jun 3, 2009 at 12:46 PM, Sebastian W. wrote: Hello all, Is there a way to explicitly tell a mock to expec

Re: [rspec-users] Mock should receive no messages?

2009-06-03 Thread David Chelimsky
On Wed, Jun 3, 2009 at 1:19 PM, Sebastian W. wrote: > David Chelimsky wrote: >> On Wed, Jun 3, 2009 at 12:46 PM, Sebastian W. >> wrote: >>> Hello all, >>> Is there a way to explicitly tell a mock to expect no messages and give >>> an error if it does? I believe this is the default behavior, but t

Re: [rspec-users] New Zentest, any feedback?

2009-06-03 Thread Kero van Gelder
> So I notice that Ryan released a new zentest gem today. It looks like > it has been refactored a bit. > > Are there any brave guinea pigs/canaries in the RSpec/Cucumber > community who have tried it out? Any issues? I do see that someone > has been reporting some problems with multiruby which i

[rspec-users] Difference between spec:server and autospec

2009-06-03 Thread Hunt Jon
What's the difference between spec:server and autospec? I understand spec:server is only for a Rails project while autospec can work with any projects. I read http://wiki.github.com/dchelimsky/rspec/spec_server-autospec-nearly-pure-bdd-joy but couldn't understand it. I leave autotest/autospec r

Re: [rspec-users] Difference between spec:server and autospec

2009-06-03 Thread Scott Taylor
Hunt Jon wrote: What's the difference between spec:server and autospec? I wouldn't recommend using spec server - use spork instead: http://github.com/timcharper/spork/tree/master Both load the rails environment, so that each time you run your tests (with script/spec -X or script/spec --dr