Re: [rspec-users] NoMethodError dependent on spec order

2008-11-04 Thread Jim Lindley
I have created an updated example, the issue I am seeing happens when any method has been included into a class from a module. It doesn't get re-added like methods that have been inherited or added directly to a class are. http://gist.github.com/22159 I've updated the ticket as well, but I think

Re: [rspec-users] NoMethodError dependent on spec order

2008-11-04 Thread Jim Lindley
> Hey Jim - I think this is related to this: > > http://rspec.lighthouseapp.com/projects/5645/tickets/589 > > Would you kindly add your comments to that ticket? > I updated the ticket, thanks David! I also changed the title to something more general then the existing case implied. It's not just Ke

[rspec-users] NoMethodError dependent on spec order

2008-11-04 Thread Jim Lindley
rror happens under 1.1.11 and also edge RSpec from github. We are seeing it on Mac 10.5 and also Ubuntu 8.04. [EMAIL PROTECTED]:~/sites/cpi2/spec/models(master)$ spec -v rspec 1.1.11 [EMAIL PROTECTED]:~/sites/cpi2/spec/models(master)$ ruby -v ruby 1.8.6 (2008-03-03 patchlevel 114

Re: [rspec-users] Autotest/RSpec 1.1.4/Rails 2.1 Infinite Loop?

2008-06-19 Thread Jim Lindley
>> I just got back from RailsConf, and upgraded on of my development apps to >> 2.1, and now autotest is going into an infinite loop. It runs tests >> continuously instead of waiting for files to be saved before rerunning. >> >> Has anybody else seen this, or know how to get around it? I had this

Re: [rspec-users] "should_not ==" vs "should !="

2008-01-21 Thread Jim Lindley
> I'm 99 44/100% sure that you have it right. The expression x != y is > syntactic sugar for !(x == y) much like x += y is syntactic sugar for > x = (x +y) > > The parser turns these into an internal representation (abstract > syntax tree for 1.8, byte-codes for 1.9) which is identical to the > se

Re: [rspec-users] Specifying mixins

2007-11-06 Thread Jim Lindley
> Yeah, this is fine for a simple mixin with only one shared behaviour, > but the problem is that a real chunk of mixed-in functionality will > probably need many behaviours that correspond to different initial > states (provided you're behaving yourself and not doing too much state > setup within

Re: [rspec-users] Test case for file import

2007-11-06 Thread Jim Lindley
> > Can you show some of your code that needs to be tested? > > Actually, we'd hope that the code doesn't exist yet. This is Behaviour > DRIVEN Development, after all. >  Old habits, my apologies. ___ rspec-users mailing list rspec-users@rubyforge.org ht

Re: [rspec-users] Test case for file import

2007-11-06 Thread Jim Lindley
> > I need to write the testcase for fileimport. > Can you show some of your code that needs to be tested? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Specifying mixins

2007-11-05 Thread Jim Lindley
lish! @model.should be_published end end end I can post more if that's unclear (showing the actual AR classes and mixin), but it seems to work well and eliminates duplication. I hope the formatting on this comes through... Jim Lindley http://jimlindley.com ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users