Hi Rodrigo

Maybe you've tried this already and I'm misunderstanding earlier emails, but 
what happens if you put ThinkingSphinx::Test.config.build above the 
ThinkingSphinx::Test.index line:

  # ... creating objects
  3.times { ComplimentsAffiliate.make.addresses << Address.make }
  ThinkingSphinx::Test.config.build
  ThinkingSphinx::Test.index
  ThinkingSphinx::Test.start
  # stubbing objects

-- 
Pat

On 04/04/2011, at 8:05 PM, rochgs wrote:

> Hi Pat.
> 
> On 3 abr, 07:42, Pat Allan <[email protected]> wrote:
> 
>> Can you share the code you've got in your before(:each) block?
> 
> Sure thing:
> 
>  before(:all) do
>    8.times {TicketRestaurant.make.addresses <<
> Address.make(:poblacion => 'Barcelona')}
>    @ticket_restaurant = TicketRestaurant.make(:nombre => 'restaurante
> con ticket', :tipo_cocina => 'tipo cocina')
>    @ticket_restaurant.addresses << Address.make()
>    @card_restaurant = CardRestaurant.make(:nombre => 'restaurante de
> tarjeta', :tipo_cocina => 'tipo cocina')
>    @card_restaurant.addresses << Address.make()
>    @direct_kindergarten = Kindergarten.make(:nombre => 'guarderia
> acceso direct', :direct => true, :papel => false)
>    @direct_kindergarten.addresses << Address.make()
>    @papel_kindergarten = Kindergarten.make(:nombre => 'guarderia con
> ticket', :direct => false, :papel => true)
>    @papel_kindergarten.addresses << Address.make()
>    @compliment = ComplimentsAffiliate.make(:nombre => 'afiliado a
> compliments',:tipo => 'tipo establecimiento')
>    @compliment.addresses << Address.make
>    3.times {ComplimentsAffiliate.make.addresses << Address.make}
>    ThinkingSphinx::Test.index
>    ThinkingSphinx::Test.start
>    # No queremos enviar peticiones de prueba a Google:
>    geo_results = mock('geo_results')
>    geo_results.stub!('status').and_return(Geocoding::GEO_SUCCESS)
>    geo_results.stub!('first').and_return(GLatLng.new([1,1]))
>    Geocoding.stub!('get').and_return(geo_results)
>  end
> 
> Thanks for your time.
> 
> 
> --
> Rodrigo García Suárez
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to