Sha256: 332d70d8867dfc3f21ee95578194889ca601ff0d6708dbd990627900adff3afe

Contents?: true

Size: 627 Bytes

Versions: 13

Compression:

Stored size: 627 Bytes

Contents

ROOT_PATH    = File.expand_path("..", File.dirname(__FILE__))
require File.join(ROOT_PATH, 'spec', 'support', 'usage_test')
LIB_PATH     = File.join(ROOT_PATH, 'lib')
BIN_PATH     = File.join(ROOT_PATH, 'bin')
EXAMPLE_FILES = [
  File.join(ROOT_PATH, 'README.md'),
  File.join(ROOT_PATH, 'DEV.md')
]
task "load_path" do
  $LOAD_PATH.unshift(LIB_PATH)
  $VERBOSE = nil
  ENV['PATH'] = "#{BIN_PATH}:#{ENV['PATH']}"
  ENV['CC_BUILD_ARTIFACTS'] = 'turn_off_browser_opening'
end
desc "Test that documentation usage works"
task "usage_test" => %w[load_path] do
  usage_test = UsageTest.new
  usage_test.test_files(EXAMPLE_FILES)
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
metric_fu-4.13.0 gem_tasks/usage_test.rake
fastruby-metric_fu-5.0.0 gem_tasks/usage_test.rake
code_metric_fu-4.14.4 gem_tasks/usage_test.rake
code_metric_fu-4.14.3 gem_tasks/usage_test.rake
code_metric_fu-4.14.2 gem_tasks/usage_test.rake
code_metric_fu-4.14.1 gem_tasks/usage_test.rake
code_metric_fu-4.14.0 gem_tasks/usage_test.rake
metric_fu-4.12.0 gem_tasks/usage_test.rake
metric_fu-4.11.4 gem_tasks/usage_test.rake
metric_fu-4.11.3 gem_tasks/usage_test.rake
metric_fu-4.11.2 gem_tasks/usage_test.rake
metric_fu-4.11.1 gem_tasks/usage_test.rake
metric_fu-4.11.0 gem_tasks/usage_test.rake