Sha256: 9ee9e80f14dd299d88f68de6b41aaf87ffea455c0bc0b1df91eb15b32b310512
Contents?: true
Size: 478 Bytes
Versions: 5
Compression:
Stored size: 478 Bytes
Contents
require 'test_helper' module Pelusa describe Runner do describe '#run' do before do @report = stub(empty?: false, report: true) analyzer = stub(:analyze => @report) Analyzer.stubs(:new).returns analyzer end it 'runs a single file' do Pelusa.run(__FILE__).must_equal [@report] end it 'runs multiple files' do Pelusa.run([__FILE__, __FILE__]).must_equal [@report, @report] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems