spec/support/shared_examples/wrapper.rb in arstotzka-1.0.1 vs spec/support/shared_examples/wrapper.rb in arstotzka-1.0.2
- old
+ new
@@ -1,5 +1,7 @@
+# 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 }
@@ -9,11 +11,10 @@
end
end
end
shared_context 'casts basic types' do
- it_behaves_like 'a result that is type cast', {
- integer: Integer,
- float: Float,
- string: String
- }
+ it_behaves_like 'a result that is type cast',
+ integer: Integer,
+ float: Float,
+ string: String
end