test/test_suite.rb in octopress-ink-1.0.0.rc.3 vs test/test_suite.rb in octopress-ink-1.0.0.rc.5
- old
+ new
@@ -120,10 +120,10 @@
# Remove character color codes
output = output.gsub("\e",'').gsub(/\[\d+m/,'').gsub("\[0m",'')
end
if options[:expect] && options[:expect].strip == output
pout '.'.green
- else
+ elsif options[:expect]
pout 'F'.red
@failures << {
desc: options[:desc]+"\n",
result: <<-HERE
expected: #{(options[:expect] || '').strip.green}