Actions
Patch #35413
closedAdd missing fixtures to ActivitiesControllerTest
Start date:
Due date:
% Done:
0%
Estimated time:
Description
ActivitiesControllerTest has failed.
% RAILS_ENV=test bundle exec rake db:migrate:reset % RAILS_ENV=test bundle exec rake test TEST=test/functional/activities_controller_test.rb Run options: --seed 56469 # Running: .........F Failure: ActivitiesControllerTest#test_index_atom_feed_should_respect_feeds_limit_setting [test/functional/activities_controller_test.rb:139]: Expected exactly 20 elements matching "entry", found 12.. Expected: 20 Actual: 12 rails test test/functional/activities_controller_test.rb:128 ....... Finished in 2.293125s, 7.4135 runs/s, 24.4208 assertions/s. 17 runs, 56 assertions, 1 failures, 0 errors, 0 skips
Files
Related issues
Updated by Yuichi HARADA over 3 years ago
The models of Activity are registered in source:trunk/lib/redmine.rb#L420, but some fixtures were not declared in ActivitiesControllerTest.
Redmine::Activity.map do |activity|
activity.register :issues, :class_name => %w(Issue Journal)
activity.register :changesets
activity.register :news
activity.register :documents, :class_name => %w(Document Attachment)
activity.register :files, :class_name => 'Attachment'
activity.register :wiki_edits, :class_name => 'WikiContentVersion', :default => false
activity.register :messages, :default => false
activity.register :time_entries, :default => false
end
Updated by Yuichi HARADA over 3 years ago
- File 35413.patch 35413.patch added
It was solved with the following patch.
diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb
index 6bc43da5e..6a722d8a1 100644
--- a/test/functional/activities_controller_test.rb
+++ b/test/functional/activities_controller_test.rb
@@ -28,7 +28,8 @@ class ActivitiesControllerTest < Redmine::ControllerTest
:members,
:groups_users,
:enabled_modules,
- :journals, :journal_details
+ :journals, :journal_details,
+ :attachments, :changesets, :documents, :messages, :news, :time_entries, :wiki_content_versions
def test_project_index
get(
Updated by Go MAEDA over 3 years ago
- Target version set to 5.0.0
Confirmed the issue.
Setting the target version to 5.0.0.
Updated by Go MAEDA over 3 years ago
- Related to Defect #34933: Atom feed of the activity page does not contain items after the second page added
Updated by Go MAEDA over 3 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Target version deleted (
5.0.0)
Committed as a part of #34933.
Actions