Sha256: 307301b54c0a6863fb2f8a6fcfce1a1b72f4cd1cfa752436dd70a579b951ce74
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Propono class AwsConfigTest < Minitest::Test def setup super @config = Propono::Configuration.new @config.aws_options = { a: 'any', b: 'aws-specific' } @config.sqs_options = { a: 'sqs', c: 'sqs-specific' } @config.sns_options = { a: 'sns', c: 'sns-specific' } @aws_config = Propono::AwsConfig.new(@config) end def test_overwritten_keys_take_precendence assert_equal 'sqs', @aws_config.sqs_options[:a] assert_equal 'sns', @aws_config.sns_options[:a] end def test_common_keys_remain assert_equal 'aws-specific', @aws_config.sqs_options[:b] assert_equal 'aws-specific', @aws_config.sns_options[:b] end def test_specific_keys_remain assert_equal 'sqs-specific', @aws_config.sqs_options[:c] assert_equal 'sns-specific', @aws_config.sns_options[:c] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
propono-3.0.0 | test/components/aws_config_test.rb |