Sha256: 1acdfb0f4bba63d6e266b5b5ec0268cc8121edbafe33b675a6381f40f0cd389b

Contents?: true

Size: 712 Bytes

Versions: 9

Compression:

Stored size: 712 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::Validations do

  let(:validator) { Class.new.send(:include, described_class) }

  it 'includes parameters presence validations' do
    validator.included_modules.should include Github::Validations::Presence
  end

  it 'includes authentication token validations' do
    validator.included_modules.should include Github::Validations::Token
  end

  it 'includes parameters values format validations' do
    validator.included_modules.should include Github::Validations::Format
  end

  it 'includes required parameters presence validations' do
    validator.included_modules.should include Github::Validations::Required
  end

end # Github::Validations

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
github_api-0.12.3 spec/github/validations_spec.rb
github_api-0.12.2 spec/github/validations_spec.rb
github_api-0.12.1 spec/github/validations_spec.rb
github_api-0.12.0 spec/github/validations_spec.rb
github_api-0.11.3 spec/github/validations_spec.rb
github_api-0.11.2 spec/github/validations_spec.rb
github_api-0.11.1 spec/github/validations_spec.rb
github_api-0.11.0 spec/github/validations_spec.rb
github_api-0.10.2 spec/github/validations_spec.rb