Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
b62a2c7e
Unverified
Commit
b62a2c7e
authored
8 years ago
by
Xu Cheng
Browse files
Options
Downloads
Patches
Plain Diff
add more test
Closes #514. Signed-off-by:
Xu Cheng
<
xucheng@me.com
>
parent
30bbb93f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/test/test_formulary.rb
+7
-2
7 additions, 2 deletions
Library/Homebrew/test/test_formulary.rb
Library/Homebrew/test/test_tab.rb
+9
-0
9 additions, 0 deletions
Library/Homebrew/test/test_tab.rb
with
16 additions
and
2 deletions
Library/Homebrew/test/test_formulary.rb
+
7
−
2
View file @
b62a2c7e
...
...
@@ -90,12 +90,17 @@ class FormularyFactoryTest < Homebrew::TestCase
alias_dir
.
rmtree
end
def
test_factory_from_rack
def
test_factory_from_rack
_and_from_keg
formula
=
Formulary
.
factory
(
@path
)
installer
=
FormulaInstaller
.
new
(
formula
)
shutup
{
installer
.
install
}
keg
=
Keg
.
new
(
formula
.
prefix
)
assert_kind_of
Formula
,
Formulary
.
from_rack
(
formula
.
rack
)
f
=
Formulary
.
from_rack
(
formula
.
rack
)
assert_kind_of
Formula
,
f
assert_kind_of
Tab
,
f
.
build
f
=
Formulary
.
from_keg
(
keg
)
assert_kind_of
Formula
,
f
assert_kind_of
Tab
,
f
.
build
ensure
keg
.
unlink
keg
.
uninstall
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/test/test_tab.rb
+
9
−
0
View file @
b62a2c7e
...
...
@@ -29,6 +29,9 @@ class TabTests < Homebrew::TestCase
assert_empty
tab
.
used_options
refute_predicate
tab
,
:built_as_bottle
refute_predicate
tab
,
:poured_from_bottle
assert_predicate
tab
,
:stable?
refute_predicate
tab
,
:devel?
refute_predicate
tab
,
:head?
assert_nil
tab
.
tap
assert_nil
tab
.
time
assert_nil
tab
.
HEAD
...
...
@@ -74,6 +77,9 @@ class TabTests < Homebrew::TestCase
assert_equal
@unused
.
sort
,
tab
.
unused_options
.
sort
refute_predicate
tab
,
:built_as_bottle
assert_predicate
tab
,
:poured_from_bottle
assert_predicate
tab
,
:stable?
refute_predicate
tab
,
:devel?
refute_predicate
tab
,
:head?
assert_equal
"homebrew/core"
,
tab
.
tap
.
name
assert_equal
:stable
,
tab
.
spec
refute_nil
tab
.
time
...
...
@@ -90,6 +96,9 @@ class TabTests < Homebrew::TestCase
assert_equal
@unused
.
sort
,
tab
.
unused_options
.
sort
refute_predicate
tab
,
:built_as_bottle
assert_predicate
tab
,
:poured_from_bottle
assert_predicate
tab
,
:stable?
refute_predicate
tab
,
:devel?
refute_predicate
tab
,
:head?
assert_equal
"homebrew/core"
,
tab
.
tap
.
name
assert_equal
:stable
,
tab
.
spec
refute_nil
tab
.
time
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment