|
|
|
@ -36,12 +36,14 @@ |
|
|
|
|
ba = FactoryGirl.create(:user, :firstname => 'b', :lastname => 'a') |
|
|
|
|
t = Timeline.new |
|
|
|
|
|
|
|
|
|
Setting.user_format = :firstname_lastname |
|
|
|
|
with_settings :user_format => :firstname_lastname do |
|
|
|
|
t.available_responsibles.should == [ab, ba] |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
Setting.user_format = :lastname_firstname |
|
|
|
|
with_settings :user_format => :lastname_firstname do |
|
|
|
|
t.available_responsibles.should == [ba, ab] |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|