Permalink
Browse files

spec exposing issue #49

  • Loading branch information...
1 parent 0aafc3a commit d6a932ef5c5318c0526870e093b3e84218e2e7af Kevin Olbrich committed Sep 26, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 spec/ruby-units/bugs_spec.rb
@@ -0,0 +1,10 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+describe "Github issue #49" do
+ let(:a) { Unit("3 cm^3")}
+ let(:b) { Unit.new(a)}
+
+ it "should subtract a unit properly from one initialized with a unit" do
+ (b - Unit("1.5 cm^3")).should == Unit("1.5 cm^3")
+ end
+end

0 comments on commit d6a932e

Please sign in to comment.