[#4182] Finished the rename to LaborBudget.
This commit is contained in:
@@ -5,21 +5,21 @@ class LaborBudgetTest < ActiveSupport::TestCase
|
||||
|
||||
context "#budget=" do
|
||||
should "strip dollar signs when writing" do
|
||||
e = LaborExpense.new
|
||||
e = LaborBudget.new
|
||||
e.budget = '$100.00'
|
||||
|
||||
assert_equal 100.00, e.budget.to_f
|
||||
end
|
||||
|
||||
should "strip commas when writing" do
|
||||
e = LaborExpense.new
|
||||
e = LaborBudget.new
|
||||
e.budget = '20,100.00'
|
||||
|
||||
assert_equal 20100.00, e.budget.to_f
|
||||
end
|
||||
|
||||
should "strip spaces when writing" do
|
||||
e = LaborExpense.new
|
||||
e = LaborBudget.new
|
||||
e.budget = '20 100.00'
|
||||
|
||||
assert_equal 20100.00, e.budget.to_f
|
||||
Reference in New Issue
Block a user