Skip to content

Commit

Permalink
Use default rspec pattern to enumerate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
naveg authored Jan 16, 2023
1 parent 7d1848a commit 176dc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rspecTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class RspecTests extends Tests {
protected getTestCommandWithFilePattern(): string {
let command: string = (vscode.workspace.getConfiguration('rubyTestExplorer', null).get('rspecCommand') as string);
const dir = this.getTestDirectory();
let pattern = this.getFilePattern().map(p => `${dir}/**/${p}`).join(',')
let pattern = this.getFilePattern().map(p => `${dir}/**{,/*/**}/${p}`).join(',')
command = command || `bundle exec rspec`
return `${command} --pattern '${pattern}'`;
}
Expand Down

0 comments on commit 176dc45

Please sign in to comment.