diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-21 00:20:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-21 01:19:55 +0900 |
commit | ad534a677a6df7437c934440b35affa88ce3648a (patch) | |
tree | cb0649d0cd93b0b6560e2f8e85776b38ecf2be12 /spec/ruby | |
parent | a365ae841b9fe06c1ed9efad3c457cd2d1260524 (diff) |
Fixnum as a Symbol was an old feature until 1.6
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/core/module/attr_accessor_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/module/attr_reader_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/module/attr_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/module/attr_writer_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/module/class_variable_defined_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/module/class_variable_get_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/module/class_variable_set_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/module/method_defined_spec.rb | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/spec/ruby/core/module/attr_accessor_spec.rb b/spec/ruby/core/module/attr_accessor_spec.rb index 665a9346bd..290599e631 100644 --- a/spec/ruby/core/module/attr_accessor_spec.rb +++ b/spec/ruby/core/module/attr_accessor_spec.rb @@ -36,7 +36,7 @@ describe "Module#attr_accessor" do -> { true.spec_attr_accessor = "a" }.should raise_error(RuntimeError) end - it "converts non string/symbol/fixnum names to strings using to_str" do + it "converts non string/symbol names to strings using to_str" do (o = mock('test')).should_receive(:to_str).any_number_of_times.and_return("test") c = Class.new do attr_accessor o diff --git a/spec/ruby/core/module/attr_reader_spec.rb b/spec/ruby/core/module/attr_reader_spec.rb index e16b7ba2e3..e40ae88c93 100644 --- a/spec/ruby/core/module/attr_reader_spec.rb +++ b/spec/ruby/core/module/attr_reader_spec.rb @@ -32,7 +32,7 @@ describe "Module#attr_reader" do -> { true.instance_variable_set("@spec_attr_reader", "a") }.should raise_error(RuntimeError) end - it "converts non string/symbol/fixnum names to strings using to_str" do + it "converts non string/symbol names to strings using to_str" do (o = mock('test')).should_receive(:to_str).any_number_of_times.and_return("test") c = Class.new do attr_reader o diff --git a/spec/ruby/core/module/attr_spec.rb b/spec/ruby/core/module/attr_spec.rb index 060d072f27..55c8a7d1bf 100644 --- a/spec/ruby/core/module/attr_spec.rb +++ b/spec/ruby/core/module/attr_spec.rb @@ -124,7 +124,7 @@ describe "Module#attr" do -> { c.new.bar }.should raise_error(NoMethodError) end - it "converts non string/symbol/fixnum names to strings using to_str" do + it "converts non string/symbol names to strings using to_str" do (o = mock('test')).should_receive(:to_str).any_number_of_times.and_return("test") Class.new { attr o }.new.respond_to?("test").should == true end diff --git a/spec/ruby/core/module/attr_writer_spec.rb b/spec/ruby/core/module/attr_writer_spec.rb index 59d8b7bf53..056cfcf856 100644 --- a/spec/ruby/core/module/attr_writer_spec.rb +++ b/spec/ruby/core/module/attr_writer_spec.rb @@ -32,7 +32,7 @@ describe "Module#attr_writer" do -> { true.spec_attr_writer = "a" }.should raise_error(RuntimeError) end - it "converts non string/symbol/fixnum names to strings using to_str" do + it "converts non string/symbol names to strings using to_str" do (o = mock('test')).should_receive(:to_str).any_number_of_times.and_return("test") c = Class.new do attr_writer o diff --git a/spec/ruby/core/module/class_variable_defined_spec.rb b/spec/ruby/core/module/class_variable_defined_spec.rb index f867d383c3..c0f2072a37 100644 --- a/spec/ruby/core/module/class_variable_defined_spec.rb +++ b/spec/ruby/core/module/class_variable_defined_spec.rb @@ -51,7 +51,7 @@ describe "Module#class_variable_defined?" do }.should raise_error(NameError) end - it "converts a non string/symbol/fixnum name to string using to_str" do + it "converts a non string/symbol name to string using to_str" do c = Class.new { class_variable_set :@@class_var, "test" } (o = mock('@@class_var')).should_receive(:to_str).and_return("@@class_var") c.class_variable_defined?(o).should == true diff --git a/spec/ruby/core/module/class_variable_get_spec.rb b/spec/ruby/core/module/class_variable_get_spec.rb index 79d22a506b..e5d06731ec 100644 --- a/spec/ruby/core/module/class_variable_get_spec.rb +++ b/spec/ruby/core/module/class_variable_get_spec.rb @@ -60,7 +60,7 @@ describe "Module#class_variable_get" do -> { c.send(:class_variable_get, "@invalid_name") }.should raise_error(NameError) end - it "converts a non string/symbol/fixnum name to string using to_str" do + it "converts a non string/symbol name to string using to_str" do c = Class.new { class_variable_set :@@class_var, "test" } (o = mock('@@class_var')).should_receive(:to_str).and_return("@@class_var") c.send(:class_variable_get, o).should == "test" diff --git a/spec/ruby/core/module/class_variable_set_spec.rb b/spec/ruby/core/module/class_variable_set_spec.rb index 85759a29d1..63f32f5389 100644 --- a/spec/ruby/core/module/class_variable_set_spec.rb +++ b/spec/ruby/core/module/class_variable_set_spec.rb @@ -45,7 +45,7 @@ describe "Module#class_variable_set" do }.should raise_error(NameError) end - it "converts a non string/symbol/fixnum name to string using to_str" do + it "converts a non string/symbol name to string using to_str" do (o = mock('@@class_var')).should_receive(:to_str).and_return("@@class_var") c = Class.new c.send(:class_variable_set, o, "test") diff --git a/spec/ruby/core/module/method_defined_spec.rb b/spec/ruby/core/module/method_defined_spec.rb index c2a8702d97..dccee870b1 100644 --- a/spec/ruby/core/module/method_defined_spec.rb +++ b/spec/ruby/core/module/method_defined_spec.rb @@ -30,7 +30,7 @@ describe "Module#method_defined?" do m.method_defined?(:module_specs_public_method_on_kernel).should be_false end - it "raises a TypeError when the given object is not a string/symbol/fixnum" do + it "raises a TypeError when the given object is not a string/symbol" do c = Class.new o = mock('123') |