remove unused variables
This commit is contained in:
@@ -247,7 +247,7 @@ describe 'homesick' do
|
|||||||
let(:castle) { given_castle('glencairn') }
|
let(:castle) { given_castle('glencairn') }
|
||||||
|
|
||||||
it 'unlinks dotfiles in the home folder' do
|
it 'unlinks dotfiles in the home folder' do
|
||||||
dotfile = castle.file('.some_dotfile')
|
castle.file('.some_dotfile')
|
||||||
|
|
||||||
homesick.symlink('glencairn')
|
homesick.symlink('glencairn')
|
||||||
homesick.unlink('glencairn')
|
homesick.unlink('glencairn')
|
||||||
@@ -256,7 +256,7 @@ describe 'homesick' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'unlinks non-dotfiles from the home folder' do
|
it 'unlinks non-dotfiles from the home folder' do
|
||||||
dotfile = castle.file('bin')
|
castle.file('bin')
|
||||||
|
|
||||||
homesick.symlink('glencairn')
|
homesick.symlink('glencairn')
|
||||||
homesick.unlink('glencairn')
|
homesick.unlink('glencairn')
|
||||||
@@ -268,8 +268,7 @@ describe 'homesick' do
|
|||||||
let(:castle) { given_castle('glencairn', ['.config']) }
|
let(:castle) { given_castle('glencairn', ['.config']) }
|
||||||
|
|
||||||
it 'can unlink sub directories' do
|
it 'can unlink sub directories' do
|
||||||
dotdir = castle.directory('.config')
|
castle.directory('.config').file('.some_dotfile')
|
||||||
dotfile = dotdir.file('.some_dotfile')
|
|
||||||
|
|
||||||
homesick.symlink('glencairn')
|
homesick.symlink('glencairn')
|
||||||
homesick.unlink('glencairn')
|
homesick.unlink('glencairn')
|
||||||
@@ -284,8 +283,7 @@ describe 'homesick' do
|
|||||||
let(:castle) { given_castle('glencairn', ['.config/appA']) }
|
let(:castle) { given_castle('glencairn', ['.config/appA']) }
|
||||||
|
|
||||||
it 'can unsymlink in nested sub directory' do
|
it 'can unsymlink in nested sub directory' do
|
||||||
dotdir = castle.directory('.config').directory('appA')
|
castle.directory('.config').directory('appA').file('.some_dotfile')
|
||||||
dotfile = dotdir.file('.some_dotfile')
|
|
||||||
|
|
||||||
homesick.symlink('glencairn')
|
homesick.symlink('glencairn')
|
||||||
homesick.unlink('glencairn')
|
homesick.unlink('glencairn')
|
||||||
@@ -301,9 +299,8 @@ describe 'homesick' do
|
|||||||
|
|
||||||
it 'can unsymlink under both of .config and .config/someapp' do
|
it 'can unsymlink under both of .config and .config/someapp' do
|
||||||
config_dir = castle.directory('.config')
|
config_dir = castle.directory('.config')
|
||||||
config_dotfile = config_dir.file('.some_dotfile')
|
config_dir.file('.some_dotfile')
|
||||||
someapp_dir = config_dir.directory('someapp')
|
config_dir.directory('someapp').file('.some_appfile')
|
||||||
someapp_dotfile = someapp_dir.file('.some_appfile')
|
|
||||||
|
|
||||||
homesick.symlink('glencairn')
|
homesick.symlink('glencairn')
|
||||||
homesick.unlink('glencairn')
|
homesick.unlink('glencairn')
|
||||||
@@ -321,7 +318,7 @@ describe 'homesick' do
|
|||||||
let(:castle) { given_castle('dotfiles') }
|
let(:castle) { given_castle('dotfiles') }
|
||||||
|
|
||||||
it 'using default castle name: "dotfiles"' do
|
it 'using default castle name: "dotfiles"' do
|
||||||
dotfile = castle.file('.some_dotfile')
|
castle.file('.some_dotfile')
|
||||||
|
|
||||||
homesick.symlink
|
homesick.symlink
|
||||||
homesick.unlink
|
homesick.unlink
|
||||||
|
|||||||
Reference in New Issue
Block a user