24 lines
473 B
Ruby
24 lines
473 B
Ruby
require 'spec_helper'
|
|
|
|
describe "Indenting" do
|
|
specify "multi-line arguments" do
|
|
assert_correct_indenting <<-EOF
|
|
User.new(
|
|
:first_name => 'Some',
|
|
:second_name => 'Guy'
|
|
)
|
|
EOF
|
|
|
|
assert_correct_indenting <<-EOF
|
|
User.new(:first_name => 'Some',
|
|
:second_name => 'Guy')
|
|
EOF
|
|
|
|
assert_correct_indenting <<-EOF
|
|
User.new(
|
|
:first_name => 'Some',
|
|
:second_name => 'Guy'
|
|
)
|
|
EOF
|
|
end
|
|
end
|