Commit d94eed3382ec08292be7b526edc60cbb42b3cc56

added spec for pretty align when multiple occurrences of the given pattern match

Commit diff

Support/spec/lib/pretty_align/pretty_align_spec.rb

 
2424EOF
2525 pretty_align("=>", input).should == expected
2626 end
27
28 it "should align only at the first occurrence of each match" do
29 input = <<EOF
30:name => "Billy bob thorton",
31:options => {:backflip => true}
32EOF
33 expected = <<EOF
34:name => "Billy bob thorton",
35:options => {:backflip => true}
36EOF
37 pretty_align("=>", input).should == expected
38 end
2739end
toggle raw diff