serverspec/serverspec — pull request #479 by mwrock (2014-10-08 00:28:02+00:00)
Title: strip stdout and stderr

The bump to 2.0 broke several of my tests that used the old syntax:

```
describe command('ls /tmp') do
it { should return_stdout 'foo' }
it { should return_stderr 'bar' }
it { should return_exit_status 0 }
end
```

Converting to the new syntax using:
```
describe command('ls /tmp') do
its(:stdout) { should eq 'foo' }
its(:stderr) { should match /bar/ }
its(:exit_status) { should eq 0 }
end
```
continued to have several broken tests with errors similar to:
```
expected: "datacenters"
got: "datacenters\n"
```

This PR adds a strip to the stderr and stdout which was also present in v1 and fixes my tests. However, I'm not sure if the omission of strip was intentional.