Sha256: 974259543ef42e60fe5bb6757403d420cba2c40776333d81a415ef2bb7c4bf49

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe BitBucket::Validations::Presence do
  let(:presence_checker) { Class.new.extend(described_class) }

  describe '._validates_user_repo_params' do
    it 'raises an ArgumentError if user_name or repo_name is nil' do
      expect { presence_checker._validate_user_repo_params('user_name', nil) }.to raise_error ArgumentError
      expect { presence_checker._validate_user_repo_params(nil, 'repo_name') }.to raise_error ArgumentError
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitbuckets-0.2.0 spec/bitbucket_rest_api/validations/presence_spec.rb