diff options
Diffstat (limited to 'spec/ruby/core/encoding/converter')
-rw-r--r-- | spec/ruby/core/encoding/converter/constants_spec.rb | 52 | ||||
-rw-r--r-- | spec/ruby/core/encoding/converter/new_spec.rb | 4 |
2 files changed, 28 insertions, 28 deletions
diff --git a/spec/ruby/core/encoding/converter/constants_spec.rb b/spec/ruby/core/encoding/converter/constants_spec.rb index 57b6a4d4e7..7d29bdb278 100644 --- a/spec/ruby/core/encoding/converter/constants_spec.rb +++ b/spec/ruby/core/encoding/converter/constants_spec.rb @@ -5,8 +5,8 @@ describe "Encoding::Converter::INVALID_MASK" do Encoding::Converter.should have_constant(:INVALID_MASK) end - it "has a Fixnum value" do - Encoding::Converter::INVALID_MASK.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::INVALID_MASK.should be_an_instance_of(Integer) end end @@ -15,8 +15,8 @@ describe "Encoding::Converter::INVALID_REPLACE" do Encoding::Converter.should have_constant(:INVALID_REPLACE) end - it "has a Fixnum value" do - Encoding::Converter::INVALID_REPLACE.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::INVALID_REPLACE.should be_an_instance_of(Integer) end end @@ -25,8 +25,8 @@ describe "Encoding::Converter::UNDEF_MASK" do Encoding::Converter.should have_constant(:UNDEF_MASK) end - it "has a Fixnum value" do - Encoding::Converter::UNDEF_MASK.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::UNDEF_MASK.should be_an_instance_of(Integer) end end @@ -35,8 +35,8 @@ describe "Encoding::Converter::UNDEF_REPLACE" do Encoding::Converter.should have_constant(:UNDEF_REPLACE) end - it "has a Fixnum value" do - Encoding::Converter::UNDEF_REPLACE.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::UNDEF_REPLACE.should be_an_instance_of(Integer) end end @@ -45,8 +45,8 @@ describe "Encoding::Converter::UNDEF_HEX_CHARREF" do Encoding::Converter.should have_constant(:UNDEF_HEX_CHARREF) end - it "has a Fixnum value" do - Encoding::Converter::UNDEF_HEX_CHARREF.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::UNDEF_HEX_CHARREF.should be_an_instance_of(Integer) end end @@ -55,8 +55,8 @@ describe "Encoding::Converter::PARTIAL_INPUT" do Encoding::Converter.should have_constant(:PARTIAL_INPUT) end - it "has a Fixnum value" do - Encoding::Converter::PARTIAL_INPUT.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::PARTIAL_INPUT.should be_an_instance_of(Integer) end end @@ -65,8 +65,8 @@ describe "Encoding::Converter::AFTER_OUTPUT" do Encoding::Converter.should have_constant(:AFTER_OUTPUT) end - it "has a Fixnum value" do - Encoding::Converter::AFTER_OUTPUT.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::AFTER_OUTPUT.should be_an_instance_of(Integer) end end @@ -75,8 +75,8 @@ describe "Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR" do Encoding::Converter.should have_constant(:UNIVERSAL_NEWLINE_DECORATOR) end - it "has a Fixnum value" do - Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR.should be_an_instance_of(Integer) end end @@ -85,8 +85,8 @@ describe "Encoding::Converter::CRLF_NEWLINE_DECORATOR" do Encoding::Converter.should have_constant(:CRLF_NEWLINE_DECORATOR) end - it "has a Fixnum value" do - Encoding::Converter::CRLF_NEWLINE_DECORATOR.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::CRLF_NEWLINE_DECORATOR.should be_an_instance_of(Integer) end end @@ -95,8 +95,8 @@ describe "Encoding::Converter::CR_NEWLINE_DECORATOR" do Encoding::Converter.should have_constant(:CR_NEWLINE_DECORATOR) end - it "has a Fixnum value" do - Encoding::Converter::CR_NEWLINE_DECORATOR.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::CR_NEWLINE_DECORATOR.should be_an_instance_of(Integer) end end @@ -105,8 +105,8 @@ describe "Encoding::Converter::XML_TEXT_DECORATOR" do Encoding::Converter.should have_constant(:XML_TEXT_DECORATOR) end - it "has a Fixnum value" do - Encoding::Converter::XML_TEXT_DECORATOR.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::XML_TEXT_DECORATOR.should be_an_instance_of(Integer) end end @@ -115,8 +115,8 @@ describe "Encoding::Converter::XML_ATTR_CONTENT_DECORATOR" do Encoding::Converter.should have_constant(:XML_ATTR_CONTENT_DECORATOR) end - it "has a Fixnum value" do - Encoding::Converter::XML_ATTR_CONTENT_DECORATOR.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::XML_ATTR_CONTENT_DECORATOR.should be_an_instance_of(Integer) end end @@ -125,7 +125,7 @@ describe "Encoding::Converter::XML_ATTR_QUOTE_DECORATOR" do Encoding::Converter.should have_constant(:XML_ATTR_QUOTE_DECORATOR) end - it "has a Fixnum value" do - Encoding::Converter::XML_ATTR_QUOTE_DECORATOR.should be_an_instance_of(Fixnum) + it "has an Integer value" do + Encoding::Converter::XML_ATTR_QUOTE_DECORATOR.should be_an_instance_of(Integer) end end diff --git a/spec/ruby/core/encoding/converter/new_spec.rb b/spec/ruby/core/encoding/converter/new_spec.rb index 9fc97263fe..1f7affc72b 100644 --- a/spec/ruby/core/encoding/converter/new_spec.rb +++ b/spec/ruby/core/encoding/converter/new_spec.rb @@ -47,7 +47,7 @@ describe "Encoding::Converter.new" do conv.replacement.should == "fubar" end - it "calls #to_hash to convert the options argument to a Hash if not a Fixnum" do + it "calls #to_hash to convert the options argument to a Hash if not an Integer" do opts = mock("encoding converter options") opts.should_receive(:to_hash).and_return({ replace: "fubar" }) conv = Encoding::Converter.new("us-ascii", "utf-8", **opts) @@ -82,7 +82,7 @@ describe "Encoding::Converter.new" do end.should raise_error(TypeError) end - it "raises a TypeError if passed a Fixnum for the replacement object" do + it "raises a TypeError if passed an Integer for the replacement object" do -> do Encoding::Converter.new("us-ascii", "utf-8", replace: 1) end.should raise_error(TypeError) |