middleman/middleman — pull request #457 by bhollis (2012-06-02 07:41:25+00:00)
Title: Update nested_layout tests to show that Haml still doesn't work right

The `nested_layout` tests didn't assert that the output was ordered correctly, and that's one of the problems that had plagued me with Haml and `wrap_layout`. You can see that instead of outputting the correct sequence, it produces a mixed up result, rendering the innermost content *first*, then the wrapped layouts:

```html
Inner

The Article Content

Master
New Article Title
Outer
```

I think this is due to the different way `concat` works for Haml.

I also updated Slim and ERb tests to verify ordering of output for them too. One of the ERb cases now fails but it's debateable whether or not that's a problem - it' because it's missing a newline where it seems like it should have one, but if you're outputting real HTML it won't care that things are on the same line. It's up to you whether you want to modify the test to accept that, or do something to add in a newline.