Commit 3c279a31e6f7dba6c9a484e95acf2be2a90e54af
Committed by
Rafael Manzo
1 parent
4343cafc
Exists in
master
and in
29 other branches
[Mezuro] Fixed 'get module result' test
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
plugins/mezuro/test/functional/mezuro_plugin_profile_controller_test.rb
@@ -65,9 +65,10 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase | @@ -65,9 +65,10 @@ class MezuroPluginProfileControllerTest < ActionController::TestCase | ||
65 | 65 | ||
66 | should 'get project results from a specific date' do | 66 | should 'get project results from a specific date' do |
67 | create_project_content | 67 | create_project_content |
68 | - mock_project_result | ||
69 | - Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project) | ||
70 | - get :project_result, :profile => @profile.identifier, :id => @content.id, :date => @project_result.date | 68 | + mock_project_result |
69 | + Kalibro::Client::ProjectClient.expects(:project).with(@name).returns(@project) | ||
70 | + get :project_result, :profile => @profile.identifier, :id => @content.id, :date => @project_result.date | ||
71 | + module_result_client.expects(:module_result).with(@name, @name, @project_result.date).returns(@module_result) | ||
71 | assert_response 200 | 72 | assert_response 200 |
72 | end | 73 | end |
73 | 74 |