Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed Precision specs.

  • Loading branch information...
commit 416ad22a69ffc6005b950f038d8282c88c902492 1 parent 12438af
@brixen brixen authored
View
20 core/precision/included_spec.rb
@@ -1,20 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-
-ruby_version_is ""..."1.9.1" do
- describe "Precision.included" do
- it "raises a TypeError when a class mixed with Precision does not specify induced_from" do
- class Foo ;include Precision ;end
- lambda { Foo.induced_from(1) }.should raise_error(TypeError)
- end
-
- it "doesn't raise a TypeError when a class mixed with Precision specifies induced_from" do
- class Foo
- include Precision
- def self.induced_from(obj)
- # nothing
- end
- end
- lambda { Foo.induced_from(1) }.should_not raise_error(TypeError)
- end
- end
-end
View
13 core/precision/prec_f_spec.rb
@@ -1,13 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-
-ruby_version_is ""..."1.9.1" do
- describe "Precision#prec_f" do
- it "converts an Integer to Float when called on an Integer" do
- 1.prec_f.should==1.0
- end
-
- it "returns the same Float when called on a Float" do
- 1.9.prec_f.should==1.9
- end
- end
-end
View
13 core/precision/prec_i_spec.rb
@@ -1,13 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-
-ruby_version_is ""..."1.9.1" do
- describe "Precision#prec_i" do
- it "returns the same Integer when called on an Integer" do
- 1.prec_i.should == 1
- end
-
- it "converts Float to an Integer when called on an Integer" do
- 1.9.prec_i.should == 1
- end
- end
-end
View
27 core/precision/prec_spec.rb
@@ -1,27 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-
-ruby_version_is ""..."1.9.1" do
- describe "Float#prec" do
- it "returns the same Float when given the class Float" do
- 1.4.prec(Float).should == 1.4
- end
-
- it "converts the Float to an Integer when given the class Integer" do
- 1.4.prec(Integer).should == 1
- end
- end
-
- describe "Integer#prec" do
- it "returns the same Integer when given the class Integer" do
- 1.prec(Integer).should == 1
- end
-
- it "converts the Integer to Float when given the class Float" do
- 1.prec(Float).should == 1.0
- end
- end
-end
-
-describe "Precision#prec" do
- it "needs to be reviewed for spec completeness"
-end
Please sign in to comment.
Something went wrong with that request. Please try again.