summaryrefslogtreecommitdiff
path: root/spec/unit/provider/route_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* autofixing whitespace copsLamont Granquist2016-02-051-4/+3
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-141-21/+21
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Update to RSpec 3.Claire McQuin2014-10-291-3/+3
|
* updating resources/providers unit tests to rpsec3Lamont Granquist2014-10-241-63/+63
| | | | mechanically generated patch using transpec 2.3.7 gem
* s/stub!/stub/gLamont Granquist2014-01-291-23/+23
| | | | fix deprecation warnings
* Normalize whitespace on all filesSeth Vargo2013-09-261-2/+2
|
* [CHEF-3332] removed not needed "action" argument from #generate_config methodXabier de Zuazo2013-05-241-2/+3
|
* [CHEF-3332] changed generate_config to receive action as argument, avoids ↵Xabier de Zuazo2013-05-241-2/+2
| | | | doing resource.action.last on #generate_config
* [CHEF-3332] Some regex properly escaped in the route provider unit testsXabier de Zuazo2013-05-241-10/+10
|
* [CHEF-3332] Fixed: The route resource provider will always delete config ↵Xabier de Zuazo2013-05-241-0/+15
| | | | file even for :add action
* Merge branch '10-stable'Bryan McLellan2012-11-201-1/+0
| | | | | | | | | | | | | | | | | Conflicts: chef-expander/lib/chef/expander/version.rb chef-server-api/lib/chef-server-api/version.rb chef-server-webui/lib/chef-server-webui/version.rb chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef/lib/chef/encrypted_data_bag_item.rb chef/spec/unit/encrypted_data_bag_item_spec.rb ci/jenkins_run_tests.bat ci/jenkins_run_tests.sh lib/chef/provider.rb spec/unit/knife/data_bag_from_file_spec.rb spec/unit/provider/remote_directory_spec.rb spec/unit/provider/route_spec.rb
* Finished refactoring converge and updated teststylercloke2012-11-051-2/+0
| | | | so that converge and converge! are no longer a method in the provider and why_run, respectively. There is instead set_updated_status in provider. Everything is now converged in why_run's add_action, so neither of the converge methods should ever need to be called. Updated tests to reflect this. Removed all calls to converge, and replaced with set_updated_status only for tests that are looking at the update status of a provider, where the converge behavior has been mocked out.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+230
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!