Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ruby_units/unit_definitions/standard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
# calculations
RubyUnits::Unit.define('pound') do |pound|
pound.definition = RubyUnits::Unit.new(Rational(45_359_237, 1e8), 'kg')
pound.aliases = %w(lbs lb lbm pound-mass pound pounds #)
pound.aliases = %w(lbs lb lbm lbr pound-mass pound pounds #)
end

RubyUnits::Unit.define('ounce') do |ounce|
Expand Down
1 change: 1 addition & 0 deletions spec/ruby_units/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
expect(RubyUnits::Unit.new('1 m').to_s).to eq '1m'
expect(RubyUnits::Unit.new('14.5 lbs').to_s(:lbs)).to eq '14lbs, 8oz'
expect(RubyUnits::Unit.new('220 lbs').to_s(:stone)).to eq '15stone, 10lb'
expect(RubyUnits::Unit.new('14.5 lbr').to_s(:lbs)).to eq '14lbs, 8oz'
expect(RubyUnits::Unit.new('14.2 ft').to_s(:ft)).to eq %(14'2")
expect(RubyUnits::Unit.new('1/2 cup').to_s).to eq '1/2cu'
expect(RubyUnits::Unit.new('123.55 lbs').to_s('%0.2f')).to eq '123.55lbs'
Expand Down