Commit a0e5dc6f3baea719f3285b981f84657d67efc14a
Committed by
Rafael Manzo
1 parent
6bb121a2
Exists in
master
and in
29 other branches
[mezuro] Fixed "send correct project to service" test.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
... | ... | @@ -13,6 +13,7 @@ class ProjectContentTest < ActiveSupport::TestCase |
13 | 13 | @content.repository_type = @project.repository.type |
14 | 14 | @content.repository_url = @project.repository.address |
15 | 15 | @content.configuration_name = @project.configuration_name |
16 | + @content.periodicity_in_days = 1 | |
16 | 17 | end |
17 | 18 | |
18 | 19 | should 'be an article' do |
... | ... | @@ -71,7 +72,7 @@ class ProjectContentTest < ActiveSupport::TestCase |
71 | 72 | |
72 | 73 | should 'send correct project to service' do |
73 | 74 | Kalibro::Client::ProjectClient.expects(:save).with(@content) |
74 | - Kalibro::Client::KalibroClient.expects(:process_project).with(@content.name) | |
75 | + Kalibro::Client::KalibroClient.expects(:process_project).with(@content.name, @content.periodicity_in_days) | |
75 | 76 | @content.send :send_project_to_service |
76 | 77 | end |
77 | 78 | ... | ... |