Sha256: 910c3aa597798eb7efbd06f1fc5385ffd5b7a8a0d093d42cd3989ffe24c51de5

Contents?: true

Size: 442 Bytes

Versions: 4

Compression:

Stored size: 442 Bytes

Contents

require 'spec_helper'

module AccessLint
  describe Audit do

    describe '#run' do
      it 'return a parsed set of results' do
        target = double
        output = JSON.generate([{status: 'passing', foo: 'bar'}])

        audit = Audit.new(target)
        audit.stub(:runner) { double(:runner, output: output, run: double) }

        expect(audit.run).to eq "passing"=>[{"status"=>"passing", "foo"=>"bar"}]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
access_lint-0.1.3 spec/access_lint/audit_spec.rb
access_lint-0.1.2 spec/access_lint/audit_spec.rb
access_lint-0.1.1 spec/access_lint/audit_spec.rb
access_lint-0.1.0 spec/access_lint/audit_spec.rb