Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

281
Vistas
Rspec automatically run file which are having _spec suffix but if I want to other file also which does not have _spec then what should i do?

In rails I need that when I run rspec . it will consider all file which are inside the spec directory. As of now it is considering only those file which is having _spec suffix. How can I do it , any idea ?

Thanks

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

to include other file name suffixes, you can pass a param when running rspec as shown in the docs here, like this, to include files ending in _spec.rb and _test.rb.

rspec -P "**/*_test.rb,**/*_spec.rb"

You can also include this param in a .rspec file in the root of your project that passes this pattern in automatically, like this in the .rspec file:

--pattern "**/*_test.rb,**/*_spec.rb"
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda