mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
Merge pull request #724 from chef/ap/redundant_space
Remove redundant space when missing expectation
This commit is contained in:
commit
11ce09ba42
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ module Inspec
|
|||
res, xtra = describe_chain
|
||||
itsy = xtra.nil? ? 'it' : 'its(' + xtra.to_s.inspect + ')'
|
||||
naughty = @negated ? '_not' : ''
|
||||
xpect = defined?(@expectation) ? expectation.inspect : ''
|
||||
xpect = defined?(@expectation) ? expectation.inspect+' ' : ''
|
||||
format("%sdescribe %s do\n %s { should%s %s %s}\nend",
|
||||
vars, res, itsy, naughty, matcher, xpect)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue