Sha256: b486619d166603705e9c1159370e4efd32becf62e38dace4017befea3bd9ce76

Contents?: true

Size: 239 Bytes

Versions: 6

Compression:

Stored size: 239 Bytes

Contents

shared_examples 'Base module' do
  it 'accepts including only into WrapIt::Base' do
    mod = described_class
    expect do
      Class.new(WrapIt::Base) { include mod }
    end.to raise_error TypeError, /only into WrapIt::Base/
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wrap_it-1.0.2 spec/support/shared_examples/base_module.rb
wrap_it-1.0.1 spec/support/shared_examples/base_module.rb
wrap_it-1.0.0 spec/support/shared_examples/base_module.rb
wrap_it-0.2.0 spec/support/shared_examples/base_module.rb
wrap_it-0.1.5 spec/support/shared_examples/base_module.rb
wrap_it-0.1.4 spec/support/shared_examples/base_module.rb