- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- 'test/functional/auth_sources_controller_test.rb'
- 'test/functional/repositories_mercurial_controller_test.rb'
- - 'test/helpers/activities_helper_test.rb'
- 'test/helpers/issues_helper_test.rb'
- 'test/unit/issue_test.rb'
- 'test/unit/lib/redmine/scm/adapters/git_adapter_test.rb'
events << MockEvent.new
events << MockEvent.new
events << MockEvent.new
-
- assert_equal [
+ assert_equal(
+ [
['e2', false],
['e1', false],
['e0', false]
- ], sort_activity_events(events).map {|event, grouped| [event.name, grouped]}
+ ],
+ sort_activity_events(events).map {|event, grouped| [event.name, grouped]}
+ )
end
def test_sort_activity_events_should_group_events
events << MockEvent.new
events << MockEvent.new(events[0])
events << MockEvent.new(events[0])
-
- assert_equal [
+ assert_equal(
+ [
['e2', false],
['e1', true],
['e0', true]
- ], sort_activity_events(events).map {|event, grouped| [event.name, grouped]}
+ ],
+ sort_activity_events(events).map {|event, grouped| [event.name, grouped]}
+ )
end
def test_sort_activity_events_with_group_not_in_set_should_group_events
events = []
events << MockEvent.new(e)
events << MockEvent.new(e)
-
- assert_equal [
+ assert_equal(
+ [
['e2', false],
['e1', true]
- ], sort_activity_events(events).map {|event, grouped| [event.name, grouped]}
+ ],
+ sort_activity_events(events).map {|event, grouped| [event.name, grouped]}
+ )
end
def test_sort_activity_events_should_sort_by_datetime_and_group
events << MockEvent.new(events[2])
events << MockEvent.new
events << MockEvent.new(events[2])
-
- assert_equal [
+ assert_equal(
+ [
['e6', false],
['e4', true],
['e2', true],
['e3', false],
['e1', true],
['e0', false]
- ], sort_activity_events(events).map {|event, grouped| [event.name, grouped]}
+ ],
+ sort_activity_events(events).map {|event, grouped| [event.name, grouped]}
+ )
end
end