Commit a0e5dc6f3baea719f3285b981f84657d67efc14a

Authored by Rafael Manzo
Committed by Rafael Manzo
1 parent 6bb121a2

[mezuro] Fixed "send correct project to service" test.

plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
@@ -13,6 +13,7 @@ class ProjectContentTest < ActiveSupport::TestCase @@ -13,6 +13,7 @@ class ProjectContentTest < ActiveSupport::TestCase
13 @content.repository_type = @project.repository.type 13 @content.repository_type = @project.repository.type
14 @content.repository_url = @project.repository.address 14 @content.repository_url = @project.repository.address
15 @content.configuration_name = @project.configuration_name 15 @content.configuration_name = @project.configuration_name
  16 + @content.periodicity_in_days = 1
16 end 17 end
17 18
18 should 'be an article' do 19 should 'be an article' do
@@ -71,7 +72,7 @@ class ProjectContentTest < ActiveSupport::TestCase @@ -71,7 +72,7 @@ class ProjectContentTest < ActiveSupport::TestCase
71 72
72 should 'send correct project to service' do 73 should 'send correct project to service' do
73 Kalibro::Client::ProjectClient.expects(:save).with(@content) 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 @content.send :send_project_to_service 76 @content.send :send_project_to_service
76 end 77 end
77 78