summaryrefslogtreecommitdiff
path: root/spec/ruby/library/rexml/attribute/equal_value_spec.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2020-01-12 08:14:26 +0900
committerSHIBATA Hiroshi <[email protected]>2020-01-12 12:28:29 +0900
commite61cab3a367c4040a2a487dd893c7be9a37889a9 (patch)
treec6ea3e3c929fcb5fd17197abea387173912f624b /spec/ruby/library/rexml/attribute/equal_value_spec.rb
parent83240f315a10b42b53c3b62c1fbc428f97912665 (diff)
Ignore rexml examples on ruby/spec
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2832
Diffstat (limited to 'spec/ruby/library/rexml/attribute/equal_value_spec.rb')
-rw-r--r--spec/ruby/library/rexml/attribute/equal_value_spec.rb25
1 files changed, 14 insertions, 11 deletions
diff --git a/spec/ruby/library/rexml/attribute/equal_value_spec.rb b/spec/ruby/library/rexml/attribute/equal_value_spec.rb
index 8bf2c0a3a1..a51e1cc390 100644
--- a/spec/ruby/library/rexml/attribute/equal_value_spec.rb
+++ b/spec/ruby/library/rexml/attribute/equal_value_spec.rb
@@ -1,18 +1,21 @@
require_relative '../../../spec_helper'
-require 'rexml/document'
-describe "REXML::Attribute#==" do
- it "returns true if other has equal name and value" do
- a1 = REXML::Attribute.new("foo", "bar")
- a1.should == a1.clone
+ruby_version_is ''...'2.8' do
+ require 'rexml/document'
- a2 = REXML::Attribute.new("foo", "bar")
- a1.should == a2
+ describe "REXML::Attribute#==" do
+ it "returns true if other has equal name and value" do
+ a1 = REXML::Attribute.new("foo", "bar")
+ a1.should == a1.clone
- a3 = REXML::Attribute.new("foo", "bla")
- a1.should_not == a3
+ a2 = REXML::Attribute.new("foo", "bar")
+ a1.should == a2
- a4 = REXML::Attribute.new("baz", "bar")
- a1.should_not == a4
+ a3 = REXML::Attribute.new("foo", "bla")
+ a1.should_not == a3
+
+ a4 = REXML::Attribute.new("baz", "bar")
+ a1.should_not == a4
+ end
end
end