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

Version Path
pre-commit-0.38.1 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.38.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.37.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.36.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.35.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.34.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.33.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.32.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.31.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.30.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.29.0 templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
pre-commit-0.28.0 templates/gem/test/plugins/pre_commit/checks/<%= name %>_test.rb
pre-commit-0.27.0 templates/gem/test/plugins/pre_commit/checks/<%= name %>_test.rb