spec/support/shared_examples/wrapper.rb in arstotzka-1.0.3 vs spec/support/shared_examples/wrapper.rb in arstotzka-1.0.4

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -shared_context 'a result that is type cast' do |types| +shared_examples 'a result that is type cast' do |types| types.each do |type, clazz| context "with #{type} type" do let(:type) { type } it do @@ -10,10 +10,10 @@ end end end end -shared_context 'casts basic types' do +shared_examples 'casts basic types' do it_behaves_like 'a result that is type cast', integer: Integer, float: Float, string: String end