From 7b7bb0ac9f2d8a078dd36c431ba9783daf2083e3 Mon Sep 17 00:00:00 2001 From: Fabio Teixeira Date: Tue, 28 Jul 2015 14:42:16 -0300 Subject: [PATCH] Fix communities rating broken tests --- test/functional/profile_controller_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/profile_controller_test.rb b/test/functional/profile_controller_test.rb index 469e063..92ad116 100644 --- a/test/functional/profile_controller_test.rb +++ b/test/functional/profile_controller_test.rb @@ -35,21 +35,21 @@ include SoftwareTestHelper @environment.save end - should "dispach additional comment fields to Softwares" do + should "dispach additional comment fields when a software is rated" do @hash_list = software_fields software = create_software(@hash_list) get :new_rating , profile: software.community.identifier assert_template :new_rating - assert_match(/Aditional informations/, @response.body) + assert_match(/Additional informations/, @response.body) end - should "NOT dispach additional comment fields only to Softwares" do + should "DO NOT dispach additional comment fields when the rated community isn't a software" do community = fast_create(Community) get :new_rating , profile: community.identifier assert_template :new_rating - assert_not_match(/Aditional informations/, @response.body) + assert_not_match(/Additional informations/, @response.body) end end \ No newline at end of file -- libgit2 0.21.2