diff options
Diffstat (limited to 'spec/ruby/library/rexml/attribute/value_spec.rb')
-rw-r--r-- | spec/ruby/library/rexml/attribute/value_spec.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/spec/ruby/library/rexml/attribute/value_spec.rb b/spec/ruby/library/rexml/attribute/value_spec.rb index 7763976881..cf6d1deef4 100644 --- a/spec/ruby/library/rexml/attribute/value_spec.rb +++ b/spec/ruby/library/rexml/attribute/value_spec.rb @@ -1,14 +1,17 @@ require_relative '../../../spec_helper' -require 'rexml/document' -describe "REXML::Attribute#value" do - it "returns the value of the Attribute unnormalized" do - attr = REXML::Attribute.new("name", "value") - attr_ents = REXML::Attribute.new("name", "<&>") - attr_empty = REXML::Attribute.new("name") +ruby_version_is ''...'2.8' do + require 'rexml/document' - attr.value.should == "value" - attr_ents.value.should == "<&>" - attr_empty.value.should == "" + describe "REXML::Attribute#value" do + it "returns the value of the Attribute unnormalized" do + attr = REXML::Attribute.new("name", "value") + attr_ents = REXML::Attribute.new("name", "<&>") + attr_empty = REXML::Attribute.new("name") + + attr.value.should == "value" + attr_ents.value.should == "<&>" + attr_empty.value.should == "" + end end end |