-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
093529c
commit 402209a
Showing
1 changed file
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
describe Fastlane::Actions::AwsSnsAction do | ||
describe '#run' do | ||
it 'doesn\'t smoke when you run it' do | ||
expect(Fastlane::UI).to receive(:important).with('Created String') | ||
describe Fastlane do | ||
describe Fastlane::FastFile do | ||
describe 'aws_sns' do | ||
it 'returns the FCM Platform ARN' do | ||
expect(Fastlane::UI).to receive(:important).with('Created String') | ||
result = Fastlane::FastFile.new.parse(" | ||
lane :test do | ||
aws_sns_client = Aws::SNS::Client.new(stub_responses: true) | ||
aws_sns_client = Aws::SNS::Client.new(stub_responses: true) | ||
arn = aws_sns({ | ||
aws_sns_client: aws_sns_client, | ||
platform: 'FCM', | ||
platform_name: 'FCM_SNS_PLATFORM_APP', | ||
platform_fcm_server_key: 'PLACEHOLDER_FCM_KEY', | ||
attributes_override: {} | ||
}) | ||
end | ||
").runner.execute(:test) | ||
|
||
arn = Fastlane::Actions::AwsSnsAction.run({ | ||
aws_sns_client: aws_sns_client, | ||
platform: 'FCM', | ||
platform_name: 'FCM_SNS_PLATFORM_APP', | ||
platform_fcm_server_key: 'PLACEHOLDER_FCM_KEY', | ||
attributes_override: {} | ||
}) | ||
expect(arn).to eq('String') | ||
expect(result).to eq("String") | ||
end | ||
end | ||
end | ||
end |