spec/fortnox/api/types/examples/types.rb
# frozen_string_literal: true
shared_examples_for 'equals input' do |input|
subject { klass[input] }
it { is_expected.to eq input }
end
shared_examples_for 'raises ConstraintError' do |input|
specify { expect { klass[input] }.to raise_error(Dry::Types::ConstraintError) }
end