Skip to content

Commit

Permalink
lowercase 'code' directory (laravel#667)
Browse files Browse the repository at this point in the history
not sure why this was done originally, but it's an unecessary extra keystroke
  • Loading branch information
browner12 authored and svpernova09 committed Sep 16, 2017
1 parent f40f5f7 commit 538c1f6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions resources/Homestead.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
],
"folders": [
{
"map": "~/Code",
"to": "/home/vagrant/Code"
"map": "~/code",
"to": "/home/vagrant/code"
}
],
"sites": [
{
"map": "homestead.app",
"to": "/home/vagrant/Code/public"
"to": "/home/vagrant/code/public"
}
],
"databases": [
Expand Down
6 changes: 3 additions & 3 deletions resources/Homestead.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ keys:
- ~/.ssh/id_rsa

folders:
- map: ~/Code
to: /home/vagrant/Code
- map: ~/code
to: /home/vagrant/code

sites:
- map: homestead.app
to: /home/vagrant/Code/public
to: /home/vagrant/code/public

databases:
- homestead
Expand Down
8 changes: 4 additions & 4 deletions tests/MakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public function a_homestead_yaml_settings_has_preconfigured_sites()

$this->assertEquals([
'map' => 'homestead.app',
'to' => '/home/vagrant/Code/public',
'to' => '/home/vagrant/code/public',
], $settings['sites'][0]);
}

Expand All @@ -454,7 +454,7 @@ public function a_homestead_json_settings_has_preconfigured_sites()

$this->assertEquals([
'map' => 'homestead.app',
'to' => '/home/vagrant/Code/public',
'to' => '/home/vagrant/code/public',
], $settings['sites'][0]);
}

Expand All @@ -481,7 +481,7 @@ public function a_homestead_yaml_settings_has_preconfigured_shared_folders()
// The curious thing is that both directories point to the same location.
//
$this->assertRegExp("/{$projectDirectory}/", $settings['folders'][0]['map']);
$this->assertEquals('/home/vagrant/Code', $settings['folders'][0]['to']);
$this->assertEquals('/home/vagrant/code', $settings['folders'][0]['to']);
$this->assertEquals($projectName, $settings['name']);
$this->assertEquals($projectName, $settings['hostname']);
}
Expand Down Expand Up @@ -511,7 +511,7 @@ public function a_homestead_json_settings_has_preconfigured_shared_folders()
// The curious thing is that both directories point to the same location.
//
$this->assertRegExp("/{$projectDirectory}/", $settings['folders'][0]['map']);
$this->assertEquals('/home/vagrant/Code', $settings['folders'][0]['to']);
$this->assertEquals('/home/vagrant/code', $settings['folders'][0]['to']);
$this->assertEquals($projectName, $settings['name']);
$this->assertEquals($projectName, $settings['hostname']);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Settings/JsonSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ public function it_can_configure_its_shared_folders_from_existing_settings()
$settings = new JsonSettings([
'folders' => [
[
'map' => '~/Code',
'to' => '/home/vagrant/Code',
'map' => '~/code',
'to' => '/home/vagrant/code',
'type' => 'nfs',
],
],
Expand All @@ -173,7 +173,7 @@ public function it_can_configure_its_shared_folders_from_existing_settings()
$attributes = $settings->toArray();
$this->assertEquals([
'map' => '/a/path/for/project_name',
'to' => '/home/vagrant/Code',
'to' => '/home/vagrant/code',
'type' => 'nfs',
], $attributes['folders'][0]);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Settings/YamlSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ public function it_can_configure_its_shared_folders_from_existing_settings()
$settings = new YamlSettings([
'folders' => [
[
'map' => '~/Code',
'to' => '/home/vagrant/Code',
'map' => '~/code',
'to' => '/home/vagrant/code',
'type' => 'nfs',
],
],
Expand All @@ -174,7 +174,7 @@ public function it_can_configure_its_shared_folders_from_existing_settings()
$attributes = $settings->toArray();
$this->assertEquals([
'map' => '/a/path/for/project_name',
'to' => '/home/vagrant/Code',
'to' => '/home/vagrant/code',
'type' => 'nfs',
], $attributes['folders'][0]);
}
Expand Down

0 comments on commit 538c1f6

Please sign in to comment.