[PATCH conductor] Make 2 deployables specs i18n-compatible

Tomas Sedovic tsedovic at redhat.com
Wed Feb 8 11:02:21 UTC 2012


On 02/08/2012 11:58 AM, tsedovic at redhat.com wrote:
> 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

This is a tiny change. Self-ack & pushed.



More information about the aeolus-devel mailing list