mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-09 18:48:51 -06:00
Fix default color and failing tests
This commit is contained in:
@@ -94,13 +94,13 @@ public class ListHabitsSelectionMenuBehaviorTest extends BaseUnitTest
|
||||
@Test
|
||||
public void onChangeColor() throws Exception
|
||||
{
|
||||
assertThat(habit1.getColor(), equalTo(5));
|
||||
assertThat(habit2.getColor(), equalTo(5));
|
||||
assertThat(habit1.getColor(), equalTo(8));
|
||||
assertThat(habit2.getColor(), equalTo(8));
|
||||
when(adapter.getSelected()).thenReturn(asList(habit1, habit2));
|
||||
|
||||
behavior.onChangeColor();
|
||||
|
||||
verify(screen).showColorPicker(eq(5), colorPickerCallback.capture());
|
||||
verify(screen).showColorPicker(eq(8), colorPickerCallback.capture());
|
||||
colorPickerCallback.getValue().onColorPicked(30);
|
||||
assertThat(habit1.getColor(), equalTo(30));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user