fmi/ruby-homework — Issue #6: no to_d method for String
Author: MStoykov
Created: 2011-11-01 12:44:54+00:00
State: open

Running the spec.rb for 3 exercise gives (among other things)

1) Inventory with no discounts can tell the total price of all products
Failure/Error: cart.total.should eq '3.98'.to_d
NoMethodError:
undefined method `to_d' for "3.98":String
# ./spec.rb:12:in `block (3 levels) in '