Mike McQuaid
8ed1425ed7
tests: don't output seed multiple times.
...
This clutters up the output. Instead, hide it with a RSpec formatter and
generate and output it ourselves.
2017-12-15 09:14:44 +00:00
Mike McQuaid
959538caf5
cleaner_spec: have a single "cleans files" test.
...
This avoids noting the the Linux test as "pending" on Mac.
2017-11-29 18:27:16 +00:00
Mike McQuaid
fb6cf0c3f8
More environment filtering fixes
...
- Make `brew pull` pass through Git environment variables
- Whitelist all `TRAVIS_` variables.
2017-11-27 10:48:03 +00:00
Bob W. Hogg
3cd869651b
Add test fixtures for ELF executables
...
Add test/support/fixtures/elf/
and test/support/fixtures/tarballs/testball-0.1-linux.tbz
2017-11-26 08:37:57 -08:00
Mike McQuaid
5241d07474
environment filtering: pass through TRAVIS vars.
...
We use these internally so let's map them to `HOMEBREW_` variables.
2017-11-13 10:01:54 +00:00
Mike McQuaid
b9d9e63743
spec_helper: fix etc leak.
...
Fix the `etc/bash_completion.d/_brew_services` leak from the new
bash completion in the Homebrew/homebrew-services tap.
2017-11-05 13:20:08 +00:00
Markus Reiter
8821cdc492
Include FileUtils
in spec_helper
.
2017-10-24 19:39:40 +02:00
Markus Reiter
7e970216a3
Refactor and fix RuboCop specs.
2017-10-24 19:39:40 +02:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Markus Reiter
2ad3a87045
Silence all specs by default.
2017-07-29 20:25:37 +02:00
Markus Reiter
aa8eb21b8c
Merge pull request #2861 from reitermarkus/cask-search-tty
...
Output plain list when running `brew cask search` without a TTY.
2017-07-24 00:04:43 +02:00
Markus Reiter
dccdac55a8
Add helper for testing TTY output.
2017-07-08 00:57:08 +02:00
Mike McQuaid
0b69ca85f7
spec_helper: add focus support.
...
When adding `, :focus` as a trailing argument to a `describe` or `it`
this allows you to only run that single test.
2017-07-07 16:34:29 +01:00
Markus Reiter
a1f9032b95
🗑️ Use AppleScript instead of Swift for trashing.
2017-06-24 09:15:37 +02:00
Mike McQuaid
c572081f8b
formula_desc_cop: tweak some rules.
...
Allow some specific lowercase words and provide an autocorrect for some
of these rules.
2017-06-08 15:13:10 +03:00
Mike McQuaid
d5155256ce
Fix audit version_scheme and revision checks.
...
Another attempt at fixing `brew audit` issues around detecting
`revision` and `version_scheme` changes correctly. First done in #1754
and #2086 (reverted in #2099 and #2100 ).
To ease future debugging a `ph` helper has been added to print a hash
and a series of RSpec tests to verify that the `revision`,
`version_scheme` and `version` formula version audits behave as
expected.
Fixes #1731 .
2017-04-23 18:56:22 +01:00
Mike McQuaid
a6df701fad
tests: reduce some noise.
...
- Tweak the way offline skipping happens
- Skip more tests that break when offline
- Hide more stdout output from tests.
2017-04-22 12:49:14 +01:00
Markus Reiter
b24dc2268a
Move brew cask --version
into separate file.
2017-03-08 15:49:37 +01:00
Markus Reiter
eed5a69a51
Try fixing coverage.
2017-03-05 23:08:15 +01:00
Markus Reiter
4944d43d58
Move coverage reporting into brew tests
.
2017-03-05 23:08:14 +01:00
Markus Reiter
9fc6c7b2be
Move Cask specs into brew tests
.
2017-03-05 23:08:14 +01:00
Markus Reiter
a554902380
Add mktmpdir
helper method.
2017-02-28 15:06:32 +01:00
Markus Reiter
ebe4042b2f
Convert FormulaAuditor test to spec.
2017-02-28 13:46:13 +01:00
Markus Reiter
31b904655f
Use shorter before
syntax to skip tests.
2017-02-27 22:12:55 +01:00
Markus Reiter
004e8175c6
Add formula
spec helper.
2017-02-25 13:26:50 +01:00
Markus Reiter
c7121f6be5
Merge pull request #2104 from reitermarkus/spec-integration-test-helpers
...
Convert `brew desc` test to spec and add integration test helper methods.
2017-02-23 11:04:37 +01:00
Markus Reiter
2ab1f13168
Merge pull request #2090 from reitermarkus/spec-bottles
...
Convert Utils::Bottles test to spec.
2017-02-23 09:31:28 +01:00
Markus Reiter
9dda84ad6b
Add integration test helper methods.
2017-02-23 09:23:22 +01:00
Markus Reiter
dd99d656a3
Convert Utils::Bottles test to spec.
2017-02-21 21:45:34 +01:00
Markus Reiter
8bb46baebb
Add RSpec support for integration commands.
2017-02-21 20:23:47 +01:00
Markus Reiter
5ec9597810
Convert OS::Mac::Keg test to spec.
2017-02-21 04:52:53 +01:00
Markus Reiter
7d855a539d
Merge pull request #2037 from reitermarkus/spec-utils
...
Convert Utils test to spec.
2017-02-20 19:57:15 +01:00
Markus Reiter
f33efbe7c4
Convert LanguageModuleRequirement test to spec.
2017-02-20 13:58:30 +01:00
Markus Reiter
6dfbf7066b
Convert Utils::Bottles::Collector test to spec.
2017-02-19 23:55:12 +01:00
Markus Reiter
44d2617030
Handle Homebrew.failed
in spec_helper
.
2017-02-19 18:41:53 +01:00
Markus Reiter
e1fef54b76
Replace Set::difference
with Set::^
.
2017-02-18 02:30:47 +01:00
Markus Reiter
cdcf362fc0
Add spec_helper
.
2017-02-11 15:59:54 +01:00