Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

280
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda