Sha256: 202df2bf8f3d34fcfd65b4e51f0dfb5b67f0260decd4892f6704e30054700fd4

Contents?: true

Size: 474 Bytes

Versions: 46

Compression:

Stored size: 474 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Github::Validations::Token do

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

  context '#validates_token_for' do
    it 'does not require authentication token' do
      validator.validates_token_for(:get, '/octocat/emails').should be_false
    end

    it 'requires authentication token' do
      validator.validates_token_for(:get, '/user/emails').should be_true
    end
  end

end # Github::Validations::Token

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
github_api-0.8.10 spec/github/validations/token_spec.rb
github_api-0.8.9 spec/github/validations/token_spec.rb
github_api-0.8.8 spec/github/validations/token_spec.rb
github_api-0.8.7 spec/github/validations/token_spec.rb
github_api-0.8.6 spec/github/validations/token_spec.rb
github_api-0.8.5 spec/github/validations/token_spec.rb
github_api-0.8.4 spec/github/validations/token_spec.rb
github_api-0.8.3 spec/github/validations/token_spec.rb
github_api-0.8.2 spec/github/validations/token_spec.rb
github_api-0.8.1 spec/github/validations/token_spec.rb
github_api-0.8.0 spec/github/validations/token_spec.rb
github_api-0.7.2 spec/github/validations/token_spec.rb
github_api-0.7.1 spec/github/validations/token_spec.rb
github_api-0.7.0 spec/github/validations/token_spec.rb
github_api-0.6.5 spec/github/validations/token_spec.rb
github_api-0.6.4 spec/github/validations/token_spec.rb
github_api-0.6.3 spec/github/validations/token_spec.rb
github_api-0.6.2 spec/github/validations/token_spec.rb
github_api-0.6.1 spec/github/validations/token_spec.rb
github_api-0.6.0 spec/github/validations/token_spec.rb