Sha256: a36cfb633a8bfc2ab3a5d27463d261e64fb631bcda4b8adc838b8c062448fdad
Contents?: true
Size: 332 Bytes
Versions: 5
Compression:
Stored size: 332 Bytes
Contents
shared_examples_for 'require parameters' do |parameters| parameters.each do |parameter| it "should raise ArgumentError if #{parameter} is not provided" do default_params.delete(parameter) expect{ request.call(default_params) }.to raise_error(ArgumentError, "Missing attributes: [:#{parameter}]") end end end
Version data entries
5 entries across 5 versions & 2 rubygems