Skip to content

Commit 448cb6c

Browse files
committed
Use actual instance directly
1 parent de7b334 commit 448cb6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/lib/fluent/plugin/out_aws-elasticsearch-service_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
end
1717

1818
it "`endpoint` is array." do
19-
instance.instance_variable_get(:@endpoint).map do |ep|
19+
instance.endpoint.map do |ep|
2020
expect(ep[:url]).to eq "xxxxxxxxxxxxxxxxxxxx"
2121
end
2222
end
2323

2424
it "should get region" do
25-
instance.instance_variable_get(:@endpoint).map do |ep|
25+
instance.endpoint.map do |ep|
2626
expect(ep[:region]).to eq "us-east-1"
2727
end
2828
end
2929

3030
it "should get default values" do
31-
instance.instance_variable_get(:@endpoint).map do |ep|
31+
instance.endpoint.map do |ep|
3232
expect(ep[:access_key_id]).to eq ""
3333
expect(ep[:secret_access_key]).to eq ""
3434
expect(ep[:assume_role_arn]).to eq nil

0 commit comments

Comments
 (0)