Sha256: db3565caefa6894f6e8e50e80ba55248613eea2984ad60fda4c5d3bbf65d3cc1

Contents?: true

Size: 415 Bytes

Versions: 10

Compression:

Stored size: 415 Bytes

Contents

require 'hook-helpers'
require 'test_helper'

class ScriptsTest < Test::Unit::TestCase
  include HookHelpers

  def setup
  end

  def teardown
  end

  def test_shell_scripts
    %w[bash fish zsh].each do |sh|
      source = IO.read(File.join(HOOK_COMPLETIONS_DIR, 'hook_completion.' + sh))
      result = hook('scripts', sh)
    
      assert_match(source, result, 'Script output should match')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hookapp-2.1.1 test/hook_scripts_test.rb
hookapp-2.1.0 test/hook_scripts_test.rb
hookapp-2.0.16 test/hook_scripts_test.rb
hookapp-2.0.15 test/hook_scripts_test.rb
hookapp-2.0.13 test/hook_scripts_test.rb
hookapp-2.0.12 test/hook_scripts_test.rb
hookapp-2.0.11 test/hook_scripts_test.rb
hookapp-2.0.10 test/hook_scripts_test.rb
hookapp-2.0.9 test/hook_scripts_test.rb
hookapp-2.0.8 test/hook_scripts_test.rb