Sha256: efd55edde33ea642fa41f2419e566b3bab52a2429d715043f71dab81ded12184

Contents?: true

Size: 506 Bytes

Versions: 10

Compression:

Stored size: 506 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'reporter'

    test_with_full_report do
        json = IO.read( outfile ).force_encoding( 'UTF-8' )
        JSON.pretty_generate( full_report.to_hash ).should == json
        JSON.load( json ).is_a?( Hash ).should be_true
    end

    test_with_empty_report do
        json = IO.read( outfile )
        JSON.pretty_generate( empty_report.to_hash ).should == json
        JSON.load( json ).is_a?( Hash ).should be_true
    end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arachni-1.2.1 spec/components/reporters/json_spec.rb
arachni-1.2 spec/components/reporters/json_spec.rb
arachni-1.1 spec/components/reporters/json_spec.rb
arachni-1.0.6 spec/components/reporters/json_spec.rb
arachni-1.0.5 spec/components/reporters/json_spec.rb
arachni-1.0.4 spec/components/reporters/json_spec.rb
arachni-1.0.3 spec/components/reporters/json_spec.rb
arachni-1.0.2 spec/components/reporters/json_spec.rb
arachni-1.0.1 spec/components/reporters/json_spec.rb
arachni-1.0 spec/components/reporters/json_spec.rb