mirror of
https://github.com/inspec/inspec
synced 2024-11-27 23:20:33 +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
|
res, xtra = describe_chain
|
||||||
itsy = xtra.nil? ? 'it' : 'its(' + xtra.to_s.inspect + ')'
|
itsy = xtra.nil? ? 'it' : 'its(' + xtra.to_s.inspect + ')'
|
||||||
naughty = @negated ? '_not' : ''
|
naughty = @negated ? '_not' : ''
|
||||||
xpect = defined?(@expectation) ? expectation.inspect : ''
|
xpect = defined?(@expectation) ? expectation.inspect+' ' : ''
|
||||||
format("%sdescribe %s do\n %s { should%s %s %s }\nend",
|
format("%sdescribe %s do\n %s { should%s %s %s}\nend",
|
||||||
vars, res, itsy, naughty, matcher, xpect)
|
vars, res, itsy, naughty, matcher, xpect)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue