mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@875a09e
This commit is contained in:
parent
a06301b103
commit
5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue