Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove rational checking for systems, need a better system

  • Loading branch information...
commit 4a86a8cb12525e0fabac1f8aaf65ce7cc09d2b2f 1 parent 9bbdc69
@bhuga authored
Showing with 25 additions and 31 deletions.
  1. +0 −28 spec/systems-real.spec
  2. +25 −3 spec/systems.spec
View
28 spec/systems-real.spec
@@ -1,28 +0,0 @@
-
-
-describe Quantity::Dimension do
- it "should have the base dimensional units available" do
- require 'quantity/dimension/base'
- force = Quantity::Dimension.for(:force)
- force.name.should == :force
- force.numerators.first.dimension.should == :length
- end
-end
-
-describe Quantity::Unit do
- it "should have the SI system available" do
- require 'quantity/systems/si'
- Quantity::Unit.for(:kilometers).name.should == :kilometer
- end
-
- it "should have the US system available" do
- require 'quantity/systems/us'
- Quantity::Unit.for(:gallons).name.should == :gallon
- end
-
- it "should blow up the world" do
- #Quantity::Unit.__reset!
- #Quantity::Dimension.__reset!
- end
-
-end
View
28 spec/systems.spec
@@ -1,6 +1,28 @@
-load 'systems-real.spec'
-require 'rational'
+describe Quantity::Dimension do
+ it "should have the base dimensional units available" do
+ require 'quantity/dimension/base'
+ force = Quantity::Dimension.for(:force)
+ force.name.should == :force
+ force.numerators.first.dimension.should == :length
+ end
+end
-load 'systems-real.spec'
+describe Quantity::Unit do
+ it "should have the SI system available" do
+ require 'quantity/systems/si'
+ Quantity::Unit.for(:kilometers).name.should == :kilometer
+ end
+
+ it "should have the US system available" do
+ require 'quantity/systems/us'
+ Quantity::Unit.for(:gallons).name.should == :gallon
+ end
+
+ it "should blow up the world" do
+ #Quantity::Unit.__reset!
+ #Quantity::Dimension.__reset!
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.