File: bin_test.rb

package info (click to toggle)
ruby-brandur-json-schema 0.19.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 376 kB
  • sloc: ruby: 3,764; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require "test_helper"

#
# The purpose of this sets of tests is just to include our Ruby executables
# where possible so that we can get very basic sanity checks on their syntax
# (which is something that of course Ruby can't do by default).
#
# We can do this without actually executing them because they're gated by `if
# $0 == __FILE__` statements.
#

describe "executables in bin/" do
  before do
    @bin_dir = File.expand_path("../../bin", __FILE__)
  end

  it "has roughly valid Ruby structure for validate-schema" do
    load File.join(@bin_dir, "validate-schema")
  end unless ENV["AUTOPKGTEST_TMP"]
end