From 27ae9ddc1d813608c42097df08744d8d1b728b6b Mon Sep 17 00:00:00 2001 From: lgalis Date: Wed, 5 Jul 2017 17:50:41 -0400 Subject: [PATCH] Updated specs after foreman PR #5 --- spec/controllers/provider_foreman_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/provider_foreman_controller_spec.rb b/spec/controllers/provider_foreman_controller_spec.rb index 77c4ee276c4..9bc0a59c9ed 100644 --- a/spec/controllers/provider_foreman_controller_spec.rb +++ b/spec/controllers/provider_foreman_controller_spec.rb @@ -144,7 +144,7 @@ controller.instance_variable_set(:@provider, provider2) allow(controller).to receive(:render_flash) controller.save_provider - expect(assigns(:flash_array).first[:message]).to include("Name has already been taken") + expect(assigns(:flash_array).last[:message]).to include("Name has already been taken") end context "#edit" do