Sha256: 71f7c803702aef811cad8856000ed1d4be82c05f8eed8645442d30a04f925012

Contents?: true

Size: 490 Bytes

Versions: 5

Compression:

Stored size: 490 Bytes

Contents

require_relative '../spec_helper'

describe name_from_filename do
    include_examples 'report'

    test_with_full_report do
        json = IO.read( outfile )
        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

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.4.2 spec/reports/json_spec.rb
arachni-0.4.1.3 spec/reports/json_spec.rb
arachni-0.4.1.2 spec/reports/json_spec.rb
arachni-0.4.1.1 spec/reports/json_spec.rb
arachni-0.4.1 spec/reports/json_spec.rb