On 02/08/2012 11:58 AM, tsedovic(a)redhat.com wrote:
From: Tomas Sedovic<tomas(a)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
This is a tiny change. Self-ack & pushed.