Applied fixes that allow tests to pass again.
This commit is contained in:
@@ -23,8 +23,7 @@ describe 'homesick' do
|
|||||||
end"
|
end"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect($stdout).to receive(:print)
|
expect_any_instance_of(Thor::Shell::Basic).to receive(:yes?).with(be_a(String)).and_return(true)
|
||||||
expect($stdin).to receive(:gets).and_return('y')
|
|
||||||
expect_any_instance_of(Thor::Shell::Basic).to receive(:say_status).with('eval', kind_of(Pathname))
|
expect_any_instance_of(Thor::Shell::Basic).to receive(:say_status).with('eval', kind_of(Pathname))
|
||||||
homesick.clone local_repo
|
homesick.clone local_repo
|
||||||
|
|
||||||
@@ -120,8 +119,7 @@ describe 'homesick' do
|
|||||||
|
|
||||||
context 'when told to do so' do
|
context 'when told to do so' do
|
||||||
before do
|
before do
|
||||||
expect($stdout).to receive(:print)
|
expect_any_instance_of(Thor::Shell::Basic).to receive(:yes?).with(be_a(String)).and_return(true)
|
||||||
expect($stdin).to receive(:gets).and_return('y')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'executes the .homesickrc' do
|
it 'executes the .homesickrc' do
|
||||||
@@ -140,8 +138,7 @@ describe 'homesick' do
|
|||||||
|
|
||||||
context 'when told not to do so' do
|
context 'when told not to do so' do
|
||||||
before do
|
before do
|
||||||
expect($stdout).to receive(:print)
|
expect_any_instance_of(Thor::Shell::Basic).to receive(:yes?).with(be_a(String)).and_return(false)
|
||||||
expect($stdin).to receive(:gets).and_return('n')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not execute the .homesickrc' do
|
it 'does not execute the .homesickrc' do
|
||||||
|
|||||||
Reference in New Issue
Block a user