Skip to content

Commit

Permalink
Merge pull request #19 from OpenBuildings/rename-days
Browse files Browse the repository at this point in the history
Rename days to working days.
  • Loading branch information
tumbalev authored Sep 27, 2017
2 parents bba6db8 + 20c3b9e commit 1dc9ccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/Kohana/Model/Shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function format_shipping_time($min, $max)
if ($min == 1 AND $max == 1)
return '1 day';

return $min == $max ? "{$min} days" : "{$min} - {$max} days";
return $min == $max ? "{$min} working days" : "{$min} - {$max} working days";
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/Model/ShippingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Model_ShippingTest extends Testcase_Shipping {
public function data_format_shipping_time()
{
return array(
array(3, 5, '3 - 5 days'),
array(5, 5, '5 days'),
array(3, 5, '3 - 5 working days'),
array(5, 5, '5 working days'),
array(NULL, NULL, '-'),
array(0, 0, 'same day'),
);
Expand Down

0 comments on commit 1dc9ccc

Please sign in to comment.