Commit 92ed63648d27013ad6fbc2caa577430597076f0c
Committed by
Paulo Meireles
1 parent
6951c9f0
Exists in
master
and in
28 other branches
[Mezuro] Removed incomplete test
Showing
1 changed file
with
3 additions
and
10 deletions
Show diff stats
plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb
| ... | ... | @@ -68,20 +68,13 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase |
| 68 | 68 | assert_select('h4', 'Last Result') |
| 69 | 69 | end |
| 70 | 70 | |
| 71 | - should 'get project results from a specific date' do | |
| 72 | - create_project_content | |
| 73 | -#client = mock | |
| 74 | -#Kalibro::Client::ProjectResultClient.expects(:new).returns(client) | |
| 75 | - Kalibro::Client::ProjectResultClient.expects(:has_results_before).with(@name, @date).returns(true) | |
| 76 | - Kalibro::Client::ProjectResultClient.expects(:last_result_before).with(@name, @date).returns(@project_result) | |
| 77 | - assert_response 200 | |
| 78 | - end | |
| 71 | + should 'get project results from a specific date' | |
| 79 | 72 | |
| 80 | 73 | should 'get module result' do |
| 81 | 74 | create_project_content |
| 82 | - module_result_client = mock | |
| 75 | + module_result_client = mock | |
| 83 | 76 | Kalibro::Client::ProjectResultClient.expects(:last_result).with(@name).returns(@project_result) |
| 84 | - Kalibro::Client::ModuleResultClient.expects(:new).returns(module_result_client) | |
| 77 | + Kalibro::Client::ModuleResultClient.expects(:new).returns(module_result_client) | |
| 85 | 78 | module_result_client.expects(:module_result).with(@name, @name, @project_result.date).returns(@module_result) |
| 86 | 79 | get :module_result, :profile => @profile.identifier, :id => @content.id, :module_name => @name |
| 87 | 80 | assert_response 200 | ... | ... |