On 2008-08-28, at 08:02, David Chelimsky wrote:
On Wed, Aug 27, 2008 at 2:38 PM, Nick Hoffman <[EMAIL PROTECTED]>
wrote:
If a helper method can be used for multiple model specs, obviously
it should
not be placed within a specific model's spec helper file. Is there a
recommended file in which to put such a method? Maybe
spec/helpers/application_helper_spec.rb ?
This is a very confusing question. Model's don't typically get
individual spec helper files, so I'm not sure what you're getting at.
Can you give an example?
I asked because I had begun to abstract my #describe_properties method
away from the Property model so that it can be used with any model.
Now that the method's been converted from this:
http://pastie.org/261175
to this:
http://pastie.org/261829
I'd like to use it with multiple models.
Cheers,
Nick
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users