Sha256: c776b690f52bac8e6a8bf9be9d234eb6a4a4be458ed509de357a2fcfbf5faf9f
Contents?: true
Size: 871 Bytes
Versions: 3
Compression:
Stored size: 871 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) module Danger describe Danger::DangerHlint do it 'should be a plugin' do expect(Danger::DangerHlint.new(nil)).to be_a Danger::Plugin end # # You should test your custom attributes and methods here # describe 'with Dangerfile' do before do @dangerfile = testing_dangerfile @hlint = @dangerfile.hlint allow(@hlint.git).to receive(:added_files).and_return([]) allow(@hlint.git).to receive(:modified_files).and_return([]) end # Some examples for writing tests # You should replace these with your own. it 'collects Warnings' do @hlint.lint([File.expand_path('spec/fixtures/HaskellTestFile.hs')], inline_mode: true) expect(@hlint.warnings).to all(include('severity' => 'Warning')) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danger-hlint-0.0.5 | spec/hlint_spec.rb |
danger-hlint-0.0.4 | spec/hlint_spec.rb |
danger-hlint-0.0.3 | spec/hlint_spec.rb |