Commit bef57db15d5dfcb15c69412807a36160fcd1219a
Committed by
Rafael Manzo
1 parent
d7ff510c
Exists in
master
and in
29 other branches
[Mezuro] Fixing rebase error
Showing
2 changed files
with
5 additions
and
2 deletions
Show diff stats
plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
... | ... | @@ -52,4 +52,5 @@ class MezuroPluginProfileController < ProfileController |
52 | 52 | modules_results = content.result_history(params[:module_name]) |
53 | 53 | score_history = modules_results.collect { |module_result| module_result.grade } |
54 | 54 | render :partial => 'content_viewer/score_history', :locals => {:score_history => score_history} |
55 | + end | |
55 | 56 | end | ... | ... |
plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
... | ... | @@ -92,9 +92,11 @@ returns(module_result) |
92 | 92 | end |
93 | 93 | |
94 | 94 | should 'not save a project with an existing project name in kalibro' do |
95 | - Kalibro::Client::ProjectClient.expects(:project).with(@content.name).returns(mock) | |
95 | + client = mock | |
96 | + Kalibro::Client::ProjectClient.expects(:new).returns(client) | |
97 | + client.expects(:project_names).returns([@content.name]) | |
96 | 98 | @content.send :validate_kalibro_project_name |
97 | - assert_equal @content.errors.on_base, "Project name already exists in Kalibro" | |
99 | + assert_equal "Project name already exists in Kalibro", @content.errors.on_base | |
98 | 100 | end |
99 | 101 | |
100 | 102 | private | ... | ... |