Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
- name: Run specs
env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
CASTLE_API_SECRET: ${{ secrets.CASTLE_API_SECRET }}
run: |
bundle exec rake
- name: Simplecov Report
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ GEM
minitest (6.0.6)
drb (~> 2.0)
prism (~> 1.5)
net-imap (0.6.4)
net-imap (0.6.4.1)
date
net-protocol
net-pop (0.1.2)
Expand Down
8 changes: 6 additions & 2 deletions spec/support/init_castle_device.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# frozen_string_literal: true

CastleDevise.configure do |config|
config.api_secret = ENV.fetch("CASTLE_API_SECRET", "fake-secret-123")
config.app_id = ENV.fetch("CASTLE_APP_ID", "123456789")
# Explicitly set a non-empty api_secret. The castle-rb SDK validates that
# api_secret is present before every request, and the VCR cassettes mean
# no real secret is needed, so a fixed dummy value keeps the specs valid
# everywhere (including Dependabot runs that don't get repo secrets).
config.api_secret = "fake-secret-123"
config.app_id = "123456789"
config.logger = Logger.new($stdout)
end
Loading