mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@7a16e01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8e389a0f3
commit
da7976235f
75 changed files with 940 additions and 258 deletions
|
@ -13,6 +13,7 @@ describe "Heredoc string" do
|
|||
foo bar#{@ip}
|
||||
HERE
|
||||
s.should == "foo barxxx\n"
|
||||
s.encoding.should == Encoding::US_ASCII
|
||||
end
|
||||
|
||||
it 'allow HEREDOC with <<"identifier", interpolated' do
|
||||
|
@ -20,6 +21,7 @@ HERE
|
|||
foo bar#{@ip}
|
||||
HERE
|
||||
s.should == "foo barxxx\n"
|
||||
s.encoding.should == Encoding::US_ASCII
|
||||
end
|
||||
|
||||
it "allows HEREDOC with <<'identifier', no interpolation" do
|
||||
|
@ -27,6 +29,7 @@ HERE
|
|||
foo bar#{@ip}
|
||||
HERE
|
||||
s.should == 'foo bar#{@ip}' + "\n"
|
||||
s.encoding.should == Encoding::US_ASCII
|
||||
end
|
||||
|
||||
it "allows HEREDOC with <<-identifier, allowing to indent identifier, interpolated" do
|
||||
|
@ -35,6 +38,7 @@ HERE
|
|||
HERE
|
||||
|
||||
s.should == " foo barxxx\n"
|
||||
s.encoding.should == Encoding::US_ASCII
|
||||
end
|
||||
|
||||
it 'allows HEREDOC with <<-"identifier", allowing to indent identifier, interpolated' do
|
||||
|
@ -43,6 +47,7 @@ HERE
|
|||
HERE
|
||||
|
||||
s.should == " foo barxxx\n"
|
||||
s.encoding.should == Encoding::US_ASCII
|
||||
end
|
||||
|
||||
it "allows HEREDOC with <<-'identifier', allowing to indent identifier, no interpolation" do
|
||||
|
@ -51,6 +56,7 @@ HERE
|
|||
HERE
|
||||
|
||||
s.should == ' foo bar#{@ip}' + "\n"
|
||||
s.encoding.should == Encoding::US_ASCII
|
||||
end
|
||||
|
||||
it "allows HEREDOC with <<~'identifier', allowing to indent identifier and content" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue