Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Cunha <j.a.cunha@gmail.com>2019-09-12 11:55:19 +0300
committerJoão Cunha <j.a.cunha@gmail.com>2019-09-12 12:28:25 +0300
commit0708126f86c4b78bc4739ee89fed842130d88bb1 (patch)
treebf54f2ae7a28d7997dc7a443ea5429abaef1769e
parent8924f3c3aa20e4c2ac21c35c5687bcf573d44d65 (diff)
Build instead of create to speedup tests
-rw-r--r--spec/support/shared_examples/models/cluster_application_core_shared_examples.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared_examples/models/cluster_application_core_shared_examples.rb b/spec/support/shared_examples/models/cluster_application_core_shared_examples.rb
index 6983e00fabc..1925673f121 100644
--- a/spec/support/shared_examples/models/cluster_application_core_shared_examples.rb
+++ b/spec/support/shared_examples/models/cluster_application_core_shared_examples.rb
@@ -11,7 +11,7 @@ shared_examples 'cluster application core specs' do |application_name|
allow(application).to receive(:allowed_to_uninstall?).and_return(allowed_to_uninstall_result)
end
- let(:application) { create(application_name, status) }
+ let(:application) { build(application_name, status) }
let(:status) { status_name }
context "when allowed_to_uninstall? is true" do