Add RSpec test stub
This commit is contained in:
Родитель
6455ba9d6a
Коммит
59f8c01684
|
@ -1,3 +1,5 @@
|
|||
# WORK IN PROGRESS
|
||||
|
||||
[![Circle CI](https://circleci.com/gh/lightstep/lightstep-tracer-ruby.svg?style=shield)](https://circleci.com/gh/lightstep/lightstep-tracer-ruby)
|
||||
|
||||
This library is still a work in progress.
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
machine:
|
||||
ruby:
|
||||
version: rbx-2.2.6
|
|
@ -48,7 +48,7 @@ module LightStep
|
|||
# @param $access_token The project access token
|
||||
# @return LightStepBase_Tracer
|
||||
# @throws Exception if the group name or access token is not a valid string.
|
||||
def self.new_tracer(component_name, access_token, opts = nil)
|
||||
def self.init_new_tracer(component_name, access_token, opts = nil)
|
||||
if (opts.nil?)
|
||||
opts = {}
|
||||
end
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
require_relative '../lightstep.rb'
|
||||
|
||||
describe LightStep do
|
||||
it "should return a new tracer from init_new_tracer" do
|
||||
tracer = LightStep.init_new_tracer('lightstep/ruby/spec', '{your_access_token}')
|
||||
expect(tracer).to be_an_instance_of ClientTracer
|
||||
end
|
||||
end
|
Загрузка…
Ссылка в новой задаче