aboutsummaryrefslogtreecommitdiff
path: root/test/models/backends/terraform_aws_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/models/backends/terraform_aws_test.rb')
-rw-r--r--test/models/backends/terraform_aws_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/models/backends/terraform_aws_test.rb b/test/models/backends/terraform_aws_test.rb
index 1a98440..f9a34f3 100644
--- a/test/models/backends/terraform_aws_test.rb
+++ b/test/models/backends/terraform_aws_test.rb
@@ -3,9 +3,20 @@ require 'test_helper'
class Backends::TerraformAwsTest < ActiveSupport::TestCase
setup do
@backend = Backends::TerraformAws.new
+
+ backend_latest_terraform_state = mock
+ backend_latest_terraform_state
+ .stubs(:output_value)
+ .returns('example.com')
+
+ @backend.stubs(:backend_latest_terraform_state).returns(
+ backend_latest_terraform_state
+ )
+
@mini_environment = MiniEnvironment.new(
id: 1,
name: 'Test Mini Environment',
+ backend: @backend,
backend_data: {
'build_output' => '/gnu/store/testbuildoutput'
}