From 5aaa75e7c1f4b7912c10ffdcb1cac581e20eda39 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 3 May 2020 12:28:29 +0200 Subject: Update to ruby/spec@032ee74 --- spec/ruby/library/rexml/element/cdatas_spec.rb | 2 +- spec/ruby/library/rexml/element/comments_spec.rb | 2 +- spec/ruby/library/rexml/node/parent_spec.rb | 6 +++--- spec/ruby/library/rexml/text/empty_spec.rb | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'spec/ruby/library/rexml') diff --git a/spec/ruby/library/rexml/element/cdatas_spec.rb b/spec/ruby/library/rexml/element/cdatas_spec.rb index 4cc592aae3..ecbca94f62 100644 --- a/spec/ruby/library/rexml/element/cdatas_spec.rb +++ b/spec/ruby/library/rexml/element/cdatas_spec.rb @@ -17,7 +17,7 @@ ruby_version_is ''...'2.8' do end it "freezes the returned array" do - @e.cdatas.frozen?.should == true + @e.cdatas.should.frozen? end it "returns an empty array if element has no cdata" do diff --git a/spec/ruby/library/rexml/element/comments_spec.rb b/spec/ruby/library/rexml/element/comments_spec.rb index 59a0b3e4fb..26043366d3 100644 --- a/spec/ruby/library/rexml/element/comments_spec.rb +++ b/spec/ruby/library/rexml/element/comments_spec.rb @@ -17,7 +17,7 @@ ruby_version_is ''...'2.8' do end it "returns a frozen object" do - @e.comments.frozen?.should == true + @e.comments.should.frozen? end end end diff --git a/spec/ruby/library/rexml/node/parent_spec.rb b/spec/ruby/library/rexml/node/parent_spec.rb index 693ee9d5c2..0a31abaf0f 100644 --- a/spec/ruby/library/rexml/node/parent_spec.rb +++ b/spec/ruby/library/rexml/node/parent_spec.rb @@ -6,18 +6,18 @@ ruby_version_is ''...'2.8' do describe "REXML::Node#parent?" do it "returns true for Elements" do e = REXML::Element.new("foo") - e.parent?.should == true + e.should.parent? end it "returns true for Documents" do e = REXML::Document.new - e.parent?.should == true + e.should.parent? end # This includes attributes, CDatas and declarations. it "returns false for Texts" do e = REXML::Text.new("foo") - e.parent?.should == false + e.should_not.parent? end end end diff --git a/spec/ruby/library/rexml/text/empty_spec.rb b/spec/ruby/library/rexml/text/empty_spec.rb index 392b536a4c..18f31580ad 100644 --- a/spec/ruby/library/rexml/text/empty_spec.rb +++ b/spec/ruby/library/rexml/text/empty_spec.rb @@ -5,11 +5,11 @@ ruby_version_is ''...'2.8' do describe "REXML::Text#empty?" do it "returns true if the text is empty" do - REXML::Text.new("").empty?.should == true + REXML::Text.new("").should.empty? end it "returns false if the text is not empty" do - REXML::Text.new("some_text").empty?.should == false + REXML::Text.new("some_text").should_not.empty? end end end -- cgit v1.2.3