Commit 301af8d7d151f73238282f1dae7c03f2bc27d722
Exists in
master
and in
9 other branches
Merge branch 'fix_software_communities_unit_test' into 'master'
Fix software communities unit test Remove unnecessary test case on software_community See merge request !178
Showing
1 changed file
with
1 additions
and
12 deletions
Show diff stats
src/noosfero-spb/software_communities/test/unit/software_info_test.rb
| ... | ... | @@ -15,18 +15,7 @@ class SoftwareInfoValidationTest < ActiveSupport::TestCase |
| 15 | 15 | assert_equal @software_info.license_info, @license_info |
| 16 | 16 | end |
| 17 | 17 | |
| 18 | - should "Return license_info with nil id when license is 'Another'" do | |
| 19 | - @software_info = create_software_info("software_test") | |
| 20 | - @license_another = create_license_info("Another") | |
| 21 | - | |
| 22 | - @software_info.license_info = @license_another | |
| 23 | - @software_info.save! | |
| 24 | - | |
| 25 | - assert_equal @software_info.license_info_id, @license_another.id | |
| 26 | - assert_equal @software_info.license_info.id, nil | |
| 27 | - end | |
| 28 | - | |
| 29 | - should "Return fake license_info when call method another_license" do | |
| 18 | + should "Return license_info with another values" do | |
| 30 | 19 | @software_info = create_software_info("software_test") |
| 31 | 20 | @license_another = create_license_info("Another") |
| 32 | 21 | ... | ... |