blob: 263ae820792a700dd7189e5273849844c73b45eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require_relative '../../spec_helper'
describe "Float" do
it "includes Comparable" do
Float.include?(Comparable).should == true
end
it ".allocate raises a TypeError" do
-> do
Float.allocate
end.should raise_error(TypeError)
end
it ".new is undefined" do
-> do
Float.new
end.should raise_error(NoMethodError)
end
end
|