Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions spec/shell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ def bundle_exec(*cmd)
expect { shell.cache('core') }.not_to raise_error
end

it 'caches core pins' do
allow(Solargraph::Collection::Core).to receive(:load).and_return([])

capture_both { shell.cache('core') }

expect(Solargraph::Collection::Core).to have_received(:load)
end

it 'gives sensible error for gem that does not exist' do
skip 'WIP'
output = capture_both do
Expand Down
Loading