diff options
Diffstat (limited to 'spec/ruby/library/rexml/attribute')
-rw-r--r-- | spec/ruby/library/rexml/attribute/remove_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/rexml/attribute/xpath_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/rexml/attribute/remove_spec.rb b/spec/ruby/library/rexml/attribute/remove_spec.rb index b97b860a5f..08d22cb6ba 100644 --- a/spec/ruby/library/rexml/attribute/remove_spec.rb +++ b/spec/ruby/library/rexml/attribute/remove_spec.rb @@ -15,6 +15,6 @@ describe "REXML::Attribute#remove" do end it "does not anything if element has no parent" do - lambda {@attr.remove}.should_not raise_error(Exception) + -> {@attr.remove}.should_not raise_error(Exception) end end diff --git a/spec/ruby/library/rexml/attribute/xpath_spec.rb b/spec/ruby/library/rexml/attribute/xpath_spec.rb index beefb036cc..8335e0a8ef 100644 --- a/spec/ruby/library/rexml/attribute/xpath_spec.rb +++ b/spec/ruby/library/rexml/attribute/xpath_spec.rb @@ -14,6 +14,6 @@ describe "REXML::Attribute#xpath" do end it "raises an error if attribute has no parent" do - lambda { @attr.xpath }.should raise_error(Exception) + -> { @attr.xpath }.should raise_error(Exception) end end |