Sha256: 7f4421a40cb495636866e4934d85b96669a91821ab006f172e04f56ffafbcac5

Contents?: true

Size: 498 Bytes

Versions: 52

Compression:

Stored size: 498 Bytes

Contents

module SpecHelpers
  module Base

    def self.included(base)
      base.class_eval do
        let!(:github) { Github.new }
        let!(:user)   { 'peter-murach' }
        let!(:repo)   { 'github' }
        let!(:org)   { 'github' }
        let!(:collaborator) { 'octocat' }

        before(:each) do
          github.login = nil
          github.password = nil
        end
      end
    end

  end
end # SpecHelpers

RSpec.configure do |conf|
  conf.include SpecHelpers::Base, :type => :base
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
github_api-0.5.4 spec/support/base.rb
github_api-0.5.3 spec/support/base.rb
github_api-0.5.2 spec/support/base.rb
github_api-0.5.1 spec/support/base.rb
github_api-0.5.0 spec/support/base.rb
github_api-0.5.0.rc1 spec/support/base.rb
github_api-0.4.11 spec/support/base.rb
github_api-0.4.10 spec/support/base.rb
github_api-0.4.9 spec/support/base.rb
github_api-0.4.8 spec/support/base.rb
github_api-0.4.7 spec/support/base.rb
github_api-0.4.6 spec/support/base.rb