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