Skip to content

Instantly share code, notes, and snippets.

View DavidS's full-sized avatar
☁️
Currently working as @DavidS-om

David Schmitt DavidS

☁️
Currently working as @DavidS-om
View GitHub Profile
@DavidS
DavidS / bolt-tester.md
Created August 8, 2018 08:42
design exploration of using bolt for system-level testing

bolt as acceptance tester

describe 'something' do
let(:route) { instance_double('Net::IP::Route', 'route') }
before(:each) do
allow(Net::IP::Route).to receive(:new).with({ test: 'data' }).and_return(route)
end
it 'doesn't suck' do
expect(Net::IP).to receive(:routes).with(route)
provider.create(context, name, {input: 'foo'})
end
@DavidS
DavidS / gist:af669a7babf63bc2002832137a898fdd
Created October 21, 2019 16:47
pdk new module --template-url https://github.com/DavidS/modulesync_config/ --template-ref test --skip-interview foo-foo
david@davids:~/tmp$ pdk new module --template-url https://github.com/DavidS/modulesync_config/ --template-ref test --skip-interview foo-foo
pdk (INFO): Creating new module: foo-foo
[✔] Installing missing Gemfile dependencies.
pdk (INFO): Module 'foo' generated at path '/home/david/tmp/foo', from template 'https://github.com/DavidS/modulesync_config/'.
pdk (INFO): In your module directory, add classes with the 'pdk new class' command.
david@davids:~/tmp$ find foo/
foo/
foo/metadata.json
foo/templates
foo/manifests