Skip to content

Commit

Permalink
Added another test (will squash later)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcPerezPro committed Jul 14, 2021
1 parent 402209a commit f9be7ef
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions spec/aws_sns_action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,33 @@
aws_sns_client: aws_sns_client,
platform: 'FCM',
platform_name: 'FCM_SNS_PLATFORM_APP',
platform_fcm_server_key: 'PLACEHOLDER_FCM_KEY',
attributes_override: {}
platform_fcm_server_key: 'PLACEHOLDER_FCM_KEY'
})
end
").runner.execute(:test)

expect(result).to eq("String")
end

it 'raises an error if no AWS client can be created' do
expect do
Fastlane::FastFile.new.parse("
lane :test do
# Just in case they are set
ENV.delete('AWS_SNS_ACCESS_KEY')
ENV.delete('AWS_SNS_SECRET_ACCESS_KEY')
ENV.delete('AWS_SNS_REGION')
arn = aws_sns({
platform: 'FCM',
platform_name: 'FCM_SNS_PLATFORM_APP',
platform_fcm_server_key: 'PLACEHOLDER_FCM_KEY'
})
end
").runner.execute(:test)
end.to raise_error(FastlaneCore::Interface::FastlaneError)
end
end
end
end

0 comments on commit f9be7ef

Please sign in to comment.