Skip to content

Commit

Permalink
Merge branch 'release/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasrys committed Aug 20, 2018
2 parents 81d7510 + 9ea68db commit 84a544f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jasrys/laravel-crud",
"version": "1.0.1",
"version": "1.0.2",
"description": "Laravel CRUD generator",
"require-dev": {
"orchestra/testbench": "^3.6",
Expand Down
4 changes: 3 additions & 1 deletion stubs/editing_test.stub
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ class EditingMODEL_NAME_PLURALTest extends TestCase
/** @test */
public function logged_in_users_can_update_a_MODEL_NAME_LOWERCASE()
{
$this->be(factory(User::class)->create());

$MODEL_NAME_LOWERCASE = factory(MODEL_NAME::class)->create();

$MODEL_NAME->name = 'Updated';
$MODEL_NAME_LOWERCASE->name = 'Updated';

$this->patch("/MODEL_NAME_PLURAL_LOWERCASE/{$MODEL_NAME_LOWERCASE->id}", $MODEL_NAME_LOWERCASE->toArray());

Expand Down
2 changes: 1 addition & 1 deletion stubs/viewing_test.stub
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ViewingMODEL_NAME_PLURALTest extends TestCase

$MODEL_NAME_LOWERCASE = factory(MODEL_NAME::class)->create();

$this->get("MODEL_NAME_PLURAL_LOWERCASE/{$MODEL_NAME->id}")->assertRedirect('/login');
$this->get("MODEL_NAME_PLURAL_LOWERCASE/{$MODEL_NAME_LOWERCASE->id}")->assertRedirect('/login');
}

/** @test */
Expand Down

0 comments on commit 84a544f

Please sign in to comment.