summaryrefslogtreecommitdiff
path: root/spec/ruby/library/rexml/text
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/rexml/text')
-rw-r--r--spec/ruby/library/rexml/text/new_spec.rb4
-rw-r--r--spec/ruby/library/rexml/text/read_with_substitution_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/rexml/text/new_spec.rb b/spec/ruby/library/rexml/text/new_spec.rb
index a1fdcddf28..3c081dec30 100644
--- a/spec/ruby/library/rexml/text/new_spec.rb
+++ b/spec/ruby/library/rexml/text/new_spec.rb
@@ -28,12 +28,12 @@ describe "REXML::Text.new" do
t = REXML::Text.new("<&>", false, nil, true)
t.should == "<&>"
- lambda{ REXML::Text.new("<&>", false, nil, true)}.should raise_error(Exception)
+ ->{ REXML::Text.new("<&>", false, nil, true)}.should raise_error(Exception)
end
it "uses raw value of the parent if raw is nil" do
e1 = REXML::Element.new("root", nil, { raw: :all})
- lambda {REXML::Text.new("<&>", false, e1)}.should raise_error(Exception)
+ -> {REXML::Text.new("<&>", false, e1)}.should raise_error(Exception)
e2 = REXML::Element.new("root", nil, { raw: []})
e2.raw.should be_false
diff --git a/spec/ruby/library/rexml/text/read_with_substitution_spec.rb b/spec/ruby/library/rexml/text/read_with_substitution_spec.rb
index a9b4d30bc5..83b42f6d6b 100644
--- a/spec/ruby/library/rexml/text/read_with_substitution_spec.rb
+++ b/spec/ruby/library/rexml/text/read_with_substitution_spec.rb
@@ -7,6 +7,6 @@ describe "REXML::Text.read_with_substitution" do
end
it "accepts an regex for invalid expressions and raises an error if text matches" do
- lambda {REXML::Text.read_with_substitution("this is illegal", /illegal/)}.should raise_error(Exception)
+ -> {REXML::Text.read_with_substitution("this is illegal", /illegal/)}.should raise_error(Exception)
end
end