summaryrefslogtreecommitdiff
path: root/spec/ruby/library/rexml/element/element_reference_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/rexml/element/element_reference_spec.rb')
-rw-r--r--spec/ruby/library/rexml/element/element_reference_spec.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/spec/ruby/library/rexml/element/element_reference_spec.rb b/spec/ruby/library/rexml/element/element_reference_spec.rb
index db94303b1e..9660ff7507 100644
--- a/spec/ruby/library/rexml/element/element_reference_spec.rb
+++ b/spec/ruby/library/rexml/element/element_reference_spec.rb
@@ -9,14 +9,12 @@ describe "REXML::Element#[]" do
@doc.root.add_element @child
end
- ruby_version_is "2.4" do
- it "return attribute value if argument is string or symbol" do
- @doc.root[:foo].should == 'bar'
- @doc.root['foo'].should == 'bar'
- end
+ it "return attribute value if argument is string or symbol" do
+ @doc.root[:foo].should == 'bar'
+ @doc.root['foo'].should == 'bar'
+ end
- it "return nth element if argument is int" do
- @doc.root[0].should == @child
- end
+ it "return nth element if argument is int" do
+ @doc.root[0].should == @child
end
end