-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract
lib_path
and include_path
methods
also: - reduce the number of conditional checks in `mkmf_config` - prefer "shellsplit" to "split" when breaking up command flags - prepend to `$libs` instead of appending to it
- Loading branch information
1 parent
c3a27ed
commit 6b61ce6
Showing
3 changed files
with
62 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |