summaryrefslogtreecommitdiff
path: root/spec/unit/mixin
Commit message (Collapse)AuthorAgeFilesLines
* Update to RSpec 3.Claire McQuin2014-10-2914-409/+409
|
* Fixing testtyler-ball2014-10-071-16/+19
|
* Moving documentation to a more logical place. Also no longer dis-allowing ↵tyler-ball2014-10-071-7/+13
| | | | users from running brew as root.
* homebrew_owner now tries to run homebrew as the user who owns the `brew` ↵tyler-ball2014-10-072-65/+91
| | | | executable, or an optional homebrew_package resource attribute
* Restoring https://github.com/opscode/chef/pull/1921 to master - somehow it ↵tyler-ball2014-09-191-0/+65
| | | | got deleted from the git log
* fixing travis LC_ALL errorsLamont Granquist2014-09-091-6/+6
|
* unicode shell_out fixes plus mixlib-shellout 2.xLamont Granquist2014-09-081-64/+134
| | | | | | - use en_US.UTF-8 explicitly rather than relying on mixlib-shellout's 'C' locale in order to force the LANG by default (restores unicode to most chef-client calls now)
* CHEF-4101: DeepMerge - support overwriting hash values with nilMalte Swart2014-08-231-0/+14
|
* Make FileVendor configuration specific to the two implementationsdanielsdeleo2014-07-301-1/+1
| | | | | | | | | | | | | | | | FileVendor previously was configured by storing a closure/anonymous function as a class instance variable. This had the following downsides: * The API was too general, which caused a lot of code repetition * The block was lazily evaluated, which hid errors and made testing more difficult * The closures captured references to classes with references to large data structures, which complicates GC. Since we've only ever had the same two implementations of FileVendor, we can encapsulate configuration of the FileVendor factory by wrapping each configuration option in a method. As a side benefit, arguments to these methods will be eagerly evaluated, which makes it easier to detect errors.
* Set environment option's 'LC_ALL' to nil if not present in option.Claire McQuin2014-06-271-102/+53
|
* Properly modify environment option based on ENVClaire McQuin2014-06-271-31/+114
|
* Fix shell_out_with_systems_locale logic, add specs.Claire McQuin2014-06-271-0/+58
|
* Merge pull request #1000 from ljagiello/CHEF-4562Claire McQuin2014-06-091-0/+4
|\ | | | | [CHEF-4562] Remove leading underscore
| * Unit test for CHEF-4562Lukasz Jagiello2013-10-031-0/+4
| |
* | Fix warnings caused by reloading Configdanielsdeleo2014-04-241-20/+18
| |
* | Use safe_dup for DeepMerge#deep_merge to avoid TypeErrordanielsdeleo2014-03-241-0/+4
| |
* | Rescue TypeError duping un-dupable types in deep mergedanielsdeleo2014-03-241-0/+6
| |
* | [CHEF-4918] Don't destructively merge subhashes in hash_only_merge!Steven Danna2014-03-191-0/+7
| | | | | | | | | | | | hash_only_merge dups its inputs and then passes it to hash_only_merge!. Unfortunately, dup does not make a deep copy, leading hash_only_merge to mutate deeply nested structures.
* | fix should_not raise_error(SpecificException)Lamont Granquist2014-01-292-104/+104
| |
* | s/mock\(/double(/gLamont Granquist2014-01-291-1/+1
| |
* | s/stub!/stub/gLamont Granquist2014-01-296-17/+17
| | | | | | | | fix deprecation warnings
* | CHEF-4734: Stop enforcing group/owner regular expressionsLamont Granquist2014-01-091-3/+77
| | | | | | | | | | | | | | | | | | | | for unix: - user/group cannot start with '-', '+' or '~' - user/group cannot contain ':', ',' or non-space-whitespace or null byte - we already allowed spaces (i don't know why, but it was tested for) - this fixes UTF-8 chars as well windows: - AD users can be pulled in via LDAP
* | allow chef to be invoked with empty environment (env -i)Ranjib Dey2013-12-201-0/+6
| |
* | Mark popen4 tests "volatile" to prevent spurious Ci failuresdanielsdeleo2013-10-181-1/+1
| |
* | Use the platform's line endings when rendering templates.sersut2013-10-021-0/+34
| |
* | revert another checksum to pre-whitespace stateLamont Granquist2013-09-261-1/+1
| |
* | Normalize whitespace on all filesSeth Vargo2013-09-266-92/+92
|/
* Don't bother cleaning up Chef::Config after tests or initializing things to ↵John Keiser2013-09-161-1/+0
| | | | default values before
* Reset configuration before each testJohn Keiser2013-09-161-9/+0
|
* Use Chef::Config.reset in tests instead of save/load configJohn Keiser2013-09-131-7/+3
|
* Upgrade rspec to 2.13.xdanielsdeleo2013-07-111-1/+1
|
* Rename #delay_eval helper to #lazy. Update specs to account for change.Chris Roberts2013-06-191-7/+3
|
* More specs for more coverage on delayed evaluator usageChris Roberts2013-06-191-4/+22
|
* Allow delayed attribute evaluation. Add tests for delayed evaluationChris Roberts2013-06-191-0/+21
| | | | | Conflicts: lib/chef/mixin/params_validate.rb
* don't depend on line separator in partial testsdanielsdeleo2013-06-141-6/+6
| | | | | | | | | | | In some windows testing environments no line separator conversion is happening. This may be a function of git settings, or something else in our test cluster environment. In any case, line separators are irrelevant to these tests, as they are testing the partial template feature. We could remove the line endings from the test fixture files, but editors like vim add hidden newlines at the end of files, so this is difficult to maintain. Stripping the line endings within the test code is more sustainable option.
* Improve line separator conversion on windowsDaniel DeLeo2013-06-071-3/+5
| | | | | | | | * Unconditionally convert \r\n or \n to \r\n. This fixes cases where double converversion would result in \r\r\n * Use binmode to avoid double conversion in IO streams * Use binmode in tests to make sure we're not processing content before testing it.
* Remove line endings from template tests to fix them on windows.sersut2013-05-311-4/+4
|
* Fix method override warnings tests for the new methods.sersut2013-05-301-8/+9
|
* Make sure that windows line endings are protected during template rendering.sersut2013-05-301-50/+28
|
* Add warning when overriding core template functionalitydanielsdeleo2013-05-301-0/+31
|
* Pass template extensions through to partialsdanielsdeleo2013-05-291-3/+6
| | | | | | | - move the new TemplateContext code into mixin/template and consolidate with ChefContext - Copy extension modules from parent template to partial template. - Functional tests for helpers with partials.
* fix spec broken by FAC fixLamont Granquist2013-03-291-0/+1
|
* locate objects closer to their primary concernsLamont Granquist2013-03-201-1/+1
|
* fix tests for content providerLamont Granquist2013-03-181-16/+13
|
* OC-4739: OC-4748: Create powershell and batch providers in core Chefadamedx2013-02-191-0/+83
|
* add hash-only merge to deep mergedanielsdeleo2013-01-251-0/+12
|
* WIP tests for array-smashing mergedanielsdeleo2013-01-251-0/+25
|
* [CHEF-3783] Make deprecated constants availabledanielsdeleo2013-01-231-0/+23
| | | | | | * Make deprecated constants in Chef::Mixin available by loading the relevant files from the chef/dsl files that replace them. * Add deprecation warnings via const_missing hook.
* Fix dynamic inclusion of windows securable behaviordanielsdeleo2013-01-041-3/+5
|
* [CHEF-3715] rename ChecksumCache => Digesterdanielsdeleo2012-12-211-2/+2
|