Sha256: 4cefef4e526a18a26846e020659d3ced6ab49be41a082ac34752b12ade444821

Contents?: true

Size: 400 Bytes

Versions: 13

Compression:

Stored size: 400 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::Validations::Presence do

  let(:validator) { Class.new.extend(described_class) }

  context '#_validate_presence_of' do
    it 'throws error if passed param is nil' do
      gist_id = nil
      expect {
        validator._validate_presence_of gist_id
      }.to raise_error(ArgumentError)
    end
  end

end # Github::Validations::Presence

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
github_api-0.7.0 spec/github/validations/presence_spec.rb
github_api-0.6.5 spec/github/validations/presence_spec.rb
github_api-0.6.4 spec/github/validations/presence_spec.rb
github_api-0.6.3 spec/github/validations/presence_spec.rb
github_api-0.6.2 spec/github/validations/presence_spec.rb
github_api-0.6.1 spec/github/validations/presence_spec.rb
github_api-0.6.0 spec/github/validations/presence_spec.rb
github_api-0.5.4 spec/github/validations/presence_spec.rb
github_api-0.5.3 spec/github/validations/presence_spec.rb
github_api-0.5.2 spec/github/validations/presence_spec.rb
github_api-0.5.1 spec/github/validations/presence_spec.rb
github_api-0.5.0 spec/github/validations/presence_spec.rb
github_api-0.5.0.rc1 spec/github/validations/presence_spec.rb