Sha256: 17dec8088ac36e70a4edb43093e3afa0db60affcc23796f79a049baf120d9848
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
# frozen_string_literal: true shared_context 'a result that is type cast' do |types| types.each do |type, clazz| context "with #{type} type" do let(:type) { type } it do expect(cast).to be_a(clazz) end end end end shared_context 'casts basic types' do it_behaves_like 'a result that is type cast', integer: Integer, float: Float, string: String end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arstotzka-1.0.3 | spec/support/shared_examples/wrapper.rb |
arstotzka-1.0.2 | spec/support/shared_examples/wrapper.rb |