diff --git a/builds/duster b/builds/duster index 5580884..6937a18 100755 Binary files a/builds/duster and b/builds/duster differ diff --git a/config/app.php b/config/app.php index b36bb7c..2ea7f31 100644 --- a/config/app.php +++ b/config/app.php @@ -26,7 +26,7 @@ | */ - 'version' => '1.0.2', + 'version' => '1.0.3', /* |-------------------------------------------------------------------------- diff --git a/tests/Feature/LintCommandTest.php b/tests/Feature/LintCommandTest.php index 4d47171..b1e28d5 100755 --- a/tests/Feature/LintCommandTest.php +++ b/tests/Feature/LintCommandTest.php @@ -20,6 +20,18 @@ ->toContain('Put a space between blade control structure names and the opening paren:`@if(` -> `@if (`'); }); +it('lints with TLint when path contains space', function () { + [$statusCode, $output] = run('lint', [ + 'path' => base_path('tests/Fixtures/TlintFixableIssues/file with spaces.blade.php'), + '--using' => 'tlint', + ]); + + expect($statusCode)->toBe(1) + ->and($output) + ->toContain('Linting using TLint') + ->toContain('Put a space between blade control structure names and the opening paren:`@if(` -> `@if (`'); +}); + it('only lints with TLint', function () { [$statusCode, $output] = run('lint', [ 'path' => base_path('tests/Fixtures/TlintFixableIssues'), diff --git a/tests/Fixtures/TlintFixableIssues/file with spaces.blade.php b/tests/Fixtures/TlintFixableIssues/file with spaces.blade.php new file mode 100644 index 0000000..0425a7f --- /dev/null +++ b/tests/Fixtures/TlintFixableIssues/file with spaces.blade.php @@ -0,0 +1,3 @@ +@if($testing) + Testing +@endif