mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +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,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
|
||||
|
||||
|
|
Loading…
Reference in a new issue