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

Version Path
tiktalik-1.0.5 spec/support/validations.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/tiktalik-1.0.4/spec/support/validations.rb
tiktalik-1.0.4 spec/support/validations.rb
tiktalik-1.0.3 spec/support/validations.rb
tiktalik-1.0.1 spec/support/validations.rb