describe Calabash::Server do
  let(:url) {'URL'}

  it 'should initialize using a url as its first and only parameter' do
    Calabash::Server.new(url)
  end

  it 'should save the url given when initialized and return it' do
    server = Calabash::Server.new(url)

    expect(server.url).to eq(url)
  end
end

describe Calabash::Server do
  let(:endpoint) {:endpoint}
  let(:test_server_port) {200}

  it 'should initialize using an endpoint and a test server port as its first and second parameter' do
    Calabash::Server.new(endpoint, test_server_port)
  end

  it 'should save the endpoint given when initialized and return it' do
    server = Calabash::Server.new(endpoint, test_server_port)

    expect(server.endpoint).to eq(endpoint)
  end

  it 'should save the test server port given when initialized and return it' do
    server = Calabash::Server.new(endpoint, test_server_port)

    expect(server.test_server_port).to eq(test_server_port)
  end
end

Fix unit tests for server
Fix unit tests for server
