Sha256: df46078cc9fb6c2cf3c4a06a468536b020309425dbe34095fde2dff9df0392e7

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

require 'multi_json'
require 'cucumber/formatter/json'

module Cucumber
  module Formatter
    # The formatter used for <tt>--format json_pretty</tt>
    class JsonPretty < Json
      def after_features(features)
        @io.write(MultiJson.dump(@obj, :pretty => true))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-1.2.5 lib/cucumber/formatter/json_pretty.rb
cucumber-1.2.3 lib/cucumber/formatter/json_pretty.rb
cucumber-1.2.2 lib/cucumber/formatter/json_pretty.rb