Skip to content

Commit e6c868d

Browse files
nobueregon
authored andcommitted
Fixnum as a Symbol was an old feature until 1.6
1 parent 28b82f3 commit e6c868d

8 files changed

+8
-8
lines changed

core/module/attr_accessor_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class TrueClass
3636
-> { true.spec_attr_accessor = "a" }.should raise_error(RuntimeError)
3737
end
3838

39-
it "converts non string/symbol/fixnum names to strings using to_str" do
39+
it "converts non string/symbol names to strings using to_str" do
4040
(o = mock('test')).should_receive(:to_str).any_number_of_times.and_return("test")
4141
c = Class.new do
4242
attr_accessor o

core/module/attr_reader_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TrueClass
3232
-> { true.instance_variable_set("@spec_attr_reader", "a") }.should raise_error(RuntimeError)
3333
end
3434

35-
it "converts non string/symbol/fixnum names to strings using to_str" do
35+
it "converts non string/symbol names to strings using to_str" do
3636
(o = mock('test')).should_receive(:to_str).any_number_of_times.and_return("test")
3737
c = Class.new do
3838
attr_reader o

core/module/attr_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def initialize
124124
-> { c.new.bar }.should raise_error(NoMethodError)
125125
end
126126

127-
it "converts non string/symbol/fixnum names to strings using to_str" do
127+
it "converts non string/symbol names to strings using to_str" do
128128
(o = mock('test')).should_receive(:to_str).any_number_of_times.and_return("test")
129129
Class.new { attr o }.new.respond_to?("test").should == true
130130
end

core/module/attr_writer_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TrueClass
3232
-> { true.spec_attr_writer = "a" }.should raise_error(RuntimeError)
3333
end
3434

35-
it "converts non string/symbol/fixnum names to strings using to_str" do
35+
it "converts non string/symbol names to strings using to_str" do
3636
(o = mock('test')).should_receive(:to_str).any_number_of_times.and_return("test")
3737
c = Class.new do
3838
attr_writer o

core/module/class_variable_defined_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
}.should raise_error(NameError)
5252
end
5353

54-
it "converts a non string/symbol/fixnum name to string using to_str" do
54+
it "converts a non string/symbol name to string using to_str" do
5555
c = Class.new { class_variable_set :@@class_var, "test" }
5656
(o = mock('@@class_var')).should_receive(:to_str).and_return("@@class_var")
5757
c.class_variable_defined?(o).should == true

core/module/class_variable_get_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
-> { c.send(:class_variable_get, "@invalid_name") }.should raise_error(NameError)
6161
end
6262

63-
it "converts a non string/symbol/fixnum name to string using to_str" do
63+
it "converts a non string/symbol name to string using to_str" do
6464
c = Class.new { class_variable_set :@@class_var, "test" }
6565
(o = mock('@@class_var')).should_receive(:to_str).and_return("@@class_var")
6666
c.send(:class_variable_get, o).should == "test"

core/module/class_variable_set_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}.should raise_error(NameError)
4646
end
4747

48-
it "converts a non string/symbol/fixnum name to string using to_str" do
48+
it "converts a non string/symbol name to string using to_str" do
4949
(o = mock('@@class_var')).should_receive(:to_str).and_return("@@class_var")
5050
c = Class.new
5151
c.send(:class_variable_set, o, "test")

core/module/method_defined_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
m.method_defined?(:module_specs_public_method_on_kernel).should be_false
3131
end
3232

33-
it "raises a TypeError when the given object is not a string/symbol/fixnum" do
33+
it "raises a TypeError when the given object is not a string/symbol" do
3434
c = Class.new
3535
o = mock('123')
3636

0 commit comments

Comments
 (0)