Fix AWS tests found during ChefStyle spike

This fixes some style issues and fixes a duplicated test method name.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
Jerry Aldrich 2019-01-21 13:05:46 -08:00
parent e6abd1b23e
commit 10f0393683
4 changed files with 23 additions and 23 deletions

View file

@ -49,7 +49,7 @@ class AwsElbFilterCriteriaTest < Minitest::Test
assert_equal('kangaroo', elb.elb_name)
end
def test_recall_when_provided_a_string
def test_recall_when_provided_a_symbol
elb = AwsElb.new elb_name: 'kang-the-alien'
assert elb.exists?
assert_equal('kang-the-alien', elb.elb_name)

View file

@ -55,7 +55,7 @@ end
#=============================================================================#
# Properties
#=============================================================================#
class AwsIamGroupRecallTest < Minitest::Test
class AwsIamGroupPropertiesTest < Minitest::Test
def setup
AwsIamGroup::BackendFactory.select(MAIGSB::Basic)

View file

@ -5,11 +5,11 @@ class EmptyAwsRouteTableTest < Minitest::Test
AwsRouteTable::BackendFactory.select(AwsMRtbB::Empty)
end
def test_search_hit_via_scalar_works
assert_empty AwsRouteTable.new[:routetables]
def test_search_hit_via_scalar_works_symbol
refute AwsRouteTable.new(route_table_id: 'rtb-123abcde').exists?
end
def test_search_hit_via_scalar_works
def test_search_hit_via_scalar_works_string
refute AwsRouteTable.new('rtb-123abcde').exists?
end
end

View file

@ -107,7 +107,7 @@ end
# Matchers
#=============================================================================#
class AwsSGSProperties < Minitest::Test
class AwsSGSMatchers < Minitest::Test
def setup
AwsSecurityGroup::BackendFactory.select(AwsMESGSB::Basic)
end