Skip to content

Commit

Permalink
Use test token
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSinn committed Aug 22, 2024
1 parent 02931d9 commit f489202
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
strategy:
matrix:
ruby-version: [ '3.1.0', '3.2.0', '3.3.0' ]

env:
DEVCYCLE_SERVER_SDK_KEY: ${{ secrets.DEVCYCLE_SERVER_SDK_KEY_UNIT_TESTS }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
Expand Down
7 changes: 6 additions & 1 deletion spec/api/devcycle_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@
# Please update as you see appropriate
describe 'DevCycle::Client' do
before(:all) do
sdk_key = ENV["DEVCYCLE_SERVER_SDK_KEY"]
if sdk_key.nil?
puts("SDK KEY NOT SET - SKIPPING INIT")
return
end
# run before each test
options = DevCycle::Options.new(enable_cloud_bucketing: true)
@api_instance = DevCycle::Client.new("dvc_server_token_hash", options)
@api_instance = DevCycle::Client.new(sdk_key, options)

@user = DevCycle::User.new({
user_id: 'test-user',
Expand Down

0 comments on commit f489202

Please sign in to comment.