Sha256: 02578f63e4089f83d7d844ccd88a0c00f9392072ab85a2f3e1140800d470f8e0
Contents?: true
Size: 827 Bytes
Versions: 3
Compression:
Stored size: 827 Bytes
Contents
RSpec.shared_examples_for Serialbar::Adapter do context 'with an instance' do #before(:each) do # @obj = described_class.new #end # test instance methods here end context 'class methods' do it 'should be an adapted class' do expect(described_class).to respond_to :foo end it "responds to configure adapter" do expect(described_class).to respond_to :configure_adapter end end end RSpec.shared_examples_for Serialbar::Listener do context 'with an instance' do before(:each) do @obj = described_class.new end # test instance methods here it 'should be an instance of listener' do expect(@obj).to be_instance_of(described_class) end it 'should response to test listener method' do expect(@obj.listener?).to eq(true) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
serialbar-0.0.3 | spec/support/shared_examples_for_modules.rb |
serialbar-0.0.2 | spec/support/shared_examples_for_modules.rb |
serialbar-0.0.1 | spec/support/shared_examples_for_modules.rb |