Merge pull request #724 from chef/ap/redundant_space

Remove redundant space when missing expectation
This commit is contained in:
Dominik Richter 2016-05-09 16:32:06 +02:00
commit 11ce09ba42

View file

@ -65,8 +65,8 @@ module Inspec
res, xtra = describe_chain
itsy = xtra.nil? ? 'it' : 'its(' + xtra.to_s.inspect + ')'
naughty = @negated ? '_not' : ''
xpect = defined?(@expectation) ? expectation.inspect : ''
format("%sdescribe %s do\n %s { should%s %s %s }\nend",
xpect = defined?(@expectation) ? expectation.inspect+' ' : ''
format("%sdescribe %s do\n %s { should%s %s %s}\nend",
vars, res, itsy, naughty, matcher, xpect)
end