From e994e3f67b5a0ddc49379928d4bca694dfde99e0 Mon Sep 17 00:00:00 2001 From: Brian McLaughlin Date: Tue, 13 Dec 2016 13:38:32 -0500 Subject: [PATCH] Spec test https://bugzilla.redhat.com/show_bug.cgi?id=1386342 (cherry picked from commit bbd39e7edf76547d4e162ab47726f9c09669bb0f) --- .../helpers/application_helper/toolbar_builder_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/helpers/application_helper/toolbar_builder_spec.rb b/spec/helpers/application_helper/toolbar_builder_spec.rb index 025ae33ac3d..9c45d71043b 100644 --- a/spec/helpers/application_helper/toolbar_builder_spec.rb +++ b/spec/helpers/application_helper/toolbar_builder_spec.rb @@ -314,6 +314,16 @@ end end + context "when with instance_miq_request_new" do + it "and @lastaction = show, @display = instances" do + @id = "instance_miq_request_new" + @lastaction = "show" + @display = "instances" + stub_user(:features => :all) + expect(subject).to be_falsey + end + end + context "when with vm_console" do before do @id = "vm_console"