JSON formatter doesn't include pending_message
Created by: AlexisKAndersen
The json formatter doesn't include the pending_message:
describe 'JSON output' do
it 'should have a pending reason' do
pending 'so we can see the reason'
fail
end
end
*
Pending:
JSON output should have a pending reason
# so we can see the reason
# ./my_spec.rb:4
Finished in 0 seconds (files took 0.125 seconds to load)
1 example, 0 failures, 1 pending
{
"examples":[
{
"description":"should have a pending reason",
"full_description":"JSON output should have a pending reason",
"status":"pending",
"file_path":"./my_spec.rb",
"line_number":4,
"run_time":0.0
}
],
"summary":{
"duration":0.0,
"example_count":1,
"failure_count":0,
"pending_count":1
},
"summary_line":"1 example, 0 failures, 1 pending"
}
the pending_message of 'so we can see the reason' shows up in the default formatter, but not the json.