hashicorp-copywrite[bot]
|
36a312ee26
|
add missing license headers and update copyright file headers to BUS-1.1
|
2023-08-10 21:53:25 +01:00 |
|
Seth Vargo
|
d79a0d52dd
|
Do not use Enumerable in Registry
Calling methods like #first in Registry is misleading because it returns
a different result than registry.get(registry.keys.first).
|
2014-12-08 11:35:10 -08:00 |
|
Seth Vargo
|
c0b107ff69
|
Add Registry#empty? to check if a registry has any items
|
2014-12-08 11:35:10 -08:00 |
|
Seth Vargo
|
2b03838fba
|
Make Registry enumerable
Registry already responds to #each, so including the Enumerable module
gives us nice methods like #select and #collect fo' free!
|
2014-12-08 11:35:10 -08:00 |
|
Seth Vargo
|
bc4bbb9fc0
|
Add #length and #size methods to Registry
|
2014-12-08 11:35:10 -08:00 |
|
Fabio Rehm
|
54656151cf
|
Convert specs to RSpec 2.14.8 syntax with Transpec
This conversion is done by Transpec 1.10.2 with the following command:
transpec test/unit/
* 507 conversions
from: obj.should
to: expect(obj).to
* 394 conversions
from: == expected
to: eq(expected)
* 260 conversions
from: obj.should_receive(:message)
to: expect(obj).to receive(:message)
* 85 conversions
from: obj.stub(:message)
to: allow(obj).to receive(:message)
* 25 conversions
from: its(:attr) { }
to: describe '#attr' do subject { super().attr }; it { } end
* 19 conversions
from: obj.should_not
to: expect(obj).not_to
* 7 conversions
from: obj.should_not_receive(:message)
to: expect(obj).not_to receive(:message)
* 3 conversions
from: Klass.any_instance.should_receive(:message)
to: expect_any_instance_of(Klass).to receive(:message)
|
2014-03-14 12:02:07 -03:00 |
|
Mitchell Hashimoto
|
213000fd3d
|
core: update Registry tests to make sure #keys doesn't load
|
2014-01-10 16:20:33 -08:00 |
|
John Bellone
|
8909018af6
|
Add unit tests for Registry#keys.
|
2013-12-16 18:16:19 -05:00 |
|
Mitchell Hashimoto
|
45879132a3
|
Registries support merging
|
2013-01-13 12:58:48 -08:00 |
|
Mitchell Hashimoto
|
6ca671e2b8
|
Don't allow registry to be given value in non-block form
|
2012-11-03 20:46:24 -07:00 |
|
Mitchell Hashimoto
|
7766eb6098
|
Major guests have been moved to plugins
|
2012-04-18 21:03:03 -07:00 |
|
Mitchell Hashimoto
|
912e4974db
|
Registry will now cache result values.
This is actually required so that we can do things like this
in plugins:
Vagrant.actions[:up].insert(Foo, Bar)
|
2012-01-28 17:31:50 -08:00 |
|
Mitchell Hashimoto
|
668bab0ba9
|
Better host loading scheme
|
2011-12-11 23:22:44 -08:00 |
|
Mitchell Hashimoto
|
b8d40ea463
|
Registry is enumerable
|
2011-12-11 18:29:42 -08:00 |
|
Mitchell Hashimoto
|
e201d9cacf
|
Rename action registry to just Vagrant::Registry
|
2011-12-11 18:22:06 -08:00 |
|