[PATCH conductor] Make 2 deployables specs i18n-compatible

tsedovic at redhat.com tsedovic at redhat.com
Wed Feb 8 10:58:20 UTC 2012


From: Tomas Sedovic <tomas at sedovic.cz>

---
 .../controllers/deployables_controller_spec.rb     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/spec/controllers/deployables_controller_spec.rb b/src/spec/controllers/deployables_controller_spec.rb
index 16d7e82..65583cb 100644
--- a/src/spec/controllers/deployables_controller_spec.rb
+++ b/src/spec/controllers/deployables_controller_spec.rb
@@ -35,13 +35,13 @@ describe DeployablesController do
 
       it "returns flash[:error] when no hardware profile exists" do
         get :new, :create_from_image => @image.id
-        flash[:error].should eql(["No hardware profile exists! Please create one."])
+        flash[:error].should_not be_empty
       end
 
       it "returns flash[:error] when no catalog and hardware profile exists" do
         Catalog.stub(:list_for_user).and_return([])
         get :new, :create_from_image => @image.id
-        flash[:error].should eql(["No catalog exists! Please create one.","No hardware profile exists! Please create one."])
+        flash[:error].should_not be_empty
       end
 
       it "returns flash[:error] when no catalog exists" do
-- 
1.7.6.5




More information about the aeolus-devel mailing list