Sha256: a1e1090cb4067d8a5f716589a01e7cbcf98dc19060151670959d500370ae5ae6
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
shared_examples_for 'a Basquiat::Adapter' do it '#adapter_options(opts)' do expect(subject).to respond_to(:adapter_options) end it '#publish' do expect(subject).to respond_to(:publish) end it '#default_options [template for option initialization]' do expect(subject).to respond_to(:default_options) end it '#subscribe_to' do expect(subject).to respond_to(:subscribe_to) end it 'merges the options with the default ones' do opts = subject.instance_variable_get(:@options) subject.adapter_options(nice_option: '127.0.0.2') expect(opts[:nice_option]).to eq('127.0.0.2') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
basquiat-1.1.1 | spec/support/shared_examples/basquiat_adapter_shared_examples.rb |