diff options
author | João Cunha <j.a.cunha@gmail.com> | 2019-09-12 11:55:19 +0300 |
---|---|---|
committer | João Cunha <j.a.cunha@gmail.com> | 2019-09-12 12:28:25 +0300 |
commit | 0708126f86c4b78bc4739ee89fed842130d88bb1 (patch) | |
tree | bf54f2ae7a28d7997dc7a443ea5429abaef1769e | |
parent | 8924f3c3aa20e4c2ac21c35c5687bcf573d44d65 (diff) |
Build instead of create to speedup tests
-rw-r--r-- | spec/support/shared_examples/models/cluster_application_core_shared_examples.rb | 2 |
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 |