Advertisement
t_a_w

<<~EOF

May 13th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.21 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. describe("ruby syntax") do
  4.   it "is pretty cool" do
  5.     x = <<~EOF
  6.       now it automatically
  7.       strips
  8.       all excess indentation
  9.     EOF
  10.     expect(x).not_to match(/^\s/)
  11.   end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement