Skip to content

Commit

Permalink
#19 Fix test path and add message validation
Browse files Browse the repository at this point in the history
  • Loading branch information
hotmeteor committed Dec 11, 2020
1 parent 62f7531 commit ef41b53
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php

namespace Spectator\Tests\Fixtures;
namespace Spectator\Tests;

use Spectator\Spectator;
use Spectator\Middleware;
use Spectator\Tests\TestCase;
use Illuminate\Support\Facades\Route;
use Spectator\SpectatorServiceProvider;

Expand Down Expand Up @@ -32,6 +31,7 @@ public function test_asserts_invalid_path()
})->middleware(Middleware::class);

$this->getJson('/invalid')
->assertInvalidRequest();
->assertInvalidRequest()
->assertValidationMessage('Path [GET /invalid] not found in spec.');
}
}

0 comments on commit ef41b53

Please sign in to comment.