[rspec-users] Module Mixin testing strategy

2010-08-14 Thread Mike Howson
Hi, Just wondered what people thoughts are to testing module's to be included in mixin's? Seems to me there are two main approaches:- 1. Test the behavior in a mixin object that includes the module because its the behavior of the object thats important not the code structure. 2. Test the module

Re: [rspec-users] Module Mixin testing strategy

2010-08-14 Thread Ashley Moran
On 14 Aug 2010, at 11:34, Mike Howson wrote: Just wondered what people thoughts are to testing module's to be included in mixin's? Seems to me there are two main approaches:- Hi Mike I've been doing a lot of this sort of coding lately, as I've been extracting duplicated code into a

Re: [rspec-users] Module Mixin testing strategy

2010-08-14 Thread David Chelimsky
On Aug 14, 2010, at 5:34 AM, Mike Howson wrote: Hi, Just wondered what people thoughts are to testing module's to be included in mixin's? Seems to me there are two main approaches:- 1. Test the behavior in a mixin object that includes the module because its the behavior of the object

Re: [rspec-users] Module Mixin testing strategy

2010-08-14 Thread David Chelimsky
On Aug 14, 2010, at 9:26 AM, Ashley Moran wrote: On 14 Aug 2010, at 11:34, Mike Howson wrote: Just wondered what people thoughts are to testing module's to be included in mixin's? Seems to me there are two main approaches:- Hi Mike I've been doing a lot of this sort of coding

Re: [rspec-users] Autotest does not start

2010-08-14 Thread Ashley Moran
On 13 Aug 2010, at 22:16, Don French wrote: Not sure what you meant by did you turn it off and on again? Ah, I just meant I was running out of ideas[1]. The other information is here: http://pastie.org/1091155 All I can suggest is maybe updating RVM and trying in Ruby 1.9.2 with a fresh

Re: [rspec-users] testing named_scope

2010-08-14 Thread Bogdan Gusiev
Nin wrote: Hi! I'm new to rspec and was wondering how named_scopes are usually tested? Is it enough to test that it's defined? or do you need to test the behavior as well? I've been reading around and this seems to be the tester's choice, i just want to get people's opinion on this :D Here is

Re: [rspec-users] generator-spec release 0.4.8

2010-08-14 Thread Kristian Mandrup
Just released 0.5.0, a pretty stable release with a large rspec test suite to show it off and ensure it works as it should :) On Aug 11, 6:02 pm, Kristian Mandrup kmandrup.git...@gmail.com wrote: Now with an almost complete test suite to ensure it all works as it should and to demonstrate how

Re: [rspec-users] Autotest does not start

2010-08-14 Thread Don French
Thought that was what you meant, but did not want to leave anything untried. I have updated to 1.9.2-rc2. same problem. I am going to have to do an update to snow leopard soon, may try it and put new code on not just restore. Don French On Aug 14, 4:40 am, Ashley Moran

Re: [rspec-users] Autotest does not start

2010-08-14 Thread Ashley Moran
On 14 Aug 2010, at 18:49, Don French wrote: Thought that was what you meant, but did not want to leave anything untried. I have updated to 1.9.2-rc2. same problem. I am going to have to do an update to snow leopard soon, may try it and put new code on not just restore. I wish I could help