summaryrefslogtreecommitdiff
path: root/spec/startup_spec.rb
blob: 3c177d8c5752467fa66f89517d49c5196a4a651b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'spec_helper'
require 'socket'

describe "startup" do
  context "starting the debugger" do
    before { vim.server.remote_send ':VdebugStart<CR>' }

    # Try and connect via tcp socket
    it "should create a tcp server socket" do
        expect { TCPSocket.new('127.0.0.1', 9000).close }.not_to raise_error
    end

    after  { vim.command 'python debugger.close()' }
  end
end