Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Sep 17, 2024
1 parent 210b55c commit 57bff96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/aws/rails/railtie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ module Rails
expect(Aws.config[:logger]).to eq ::Rails.logger
end

it 'sets up eager loading for sdk services' do
expect(Aws.methods).to include(:eager_load!)
expect(::Rails.application.config.eager_load_namespaces).to include(Aws)
end

describe '.use_rails_encrypted_credentials' do
let(:rails_creds) { ::Rails.application.credentials.aws }
it 'sets aws credentials' do
Expand Down
1 change: 1 addition & 0 deletions spec/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
config.action_mailbox.ingress = :ses
config.action_mailbox.ses.subscribed_topic = 'arn:aws:sns:eu-west-1:012345678910:example-topic'
config.action_dispatch.show_exceptions = :none
config.eager_load = true
end

0 comments on commit 57bff96

Please sign in to comment.