File: test_recipe.rb

package info (click to toggle)
ruby-mini-portile2 2.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: ruby: 1,838; ansic: 38; sh: 8; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require File.expand_path('../helper', __FILE__)

class TestRecipe < TestCase
  def test_path
    recipe = MiniPortile.new("libfoo", "1.0.0")
    assert_equal(File.expand_path(File.join(recipe.target, recipe.host, recipe.name, recipe.version)), recipe.path)
  end

  def test_lib_path
    recipe = MiniPortile.new("libfoo", "1.0.0")
    assert_equal(File.join(recipe.path, "lib"), recipe.lib_path)
  end

  def test_include_path
    recipe = MiniPortile.new("libfoo", "1.0.0")
    assert_equal(File.join(recipe.path, "include"), recipe.include_path)
  end
end