Sha256: 0c4c09bc7ee5c051b26f433e3fdf4547ae6138727601b650d795460b260e4000
Contents?: true
Size: 548 Bytes
Versions: 13
Compression:
Stored size: 548 Bytes
Contents
=begin Copyright <%= copyright %> See the file LICENSE for copying permission. =end require 'minitest_helper' require 'plugins/pre_commit/checks/<%= name %>' describe PreCommit::Checks::<%= name.capitalize %> do let(:check){ PreCommit::Checks::<%= name.capitalize %>.new(nil, nil, []) } it "does nothing" do check.send(:run_check, "rake").must_equal(nil) end it "checks files" do Dir.chdir(test_files) do # TODO: create example files in test/files check.send(:run_check, ".keep").must_equal(nil) end end end
Version data entries
13 entries across 13 versions & 1 rubygems