Slide 123
Slide 123 text
@sandimetz GoGaRuCo 2012
@sandimetz Apr 2013
to Self
Incoming Outgoing
class
GearTest
<
MiniTest::Unit::TestCase
def
test_calculates_gear_inches
gear
=
Gear.new(
chainring:
52,
cog:
11,
wheel:
Wheel.new(26,
1.5))
assert_in_delta(137.1,
gear.gear_inches,
0.01)
assert_in_delta(29,
gear.wheel.diameter,
0.01)
end
end
Saturday, April 27, 13