Sha256: 7cc8fd7d5c84d7d8372fb092fbc8f7f472c815c8ff60134e0720ea3574ad07dc

Contents?: true

Size: 601 Bytes

Versions: 9

Compression:

Stored size: 601 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'webmock/rspec'
require 'rspec/mocks'
require 'pry'

require_relative '../lib/socialcast'

RSpec.configure do |config|
  config.mock_with :rspec

  config.before do
    stubbed_credentials = File.join(File.dirname(__FILE__), '..', 'fixtures')
    allow(Socialcast::CommandLine).to receive(:config_dir).and_return(stubbed_credentials)
  end

  def create_entry(cn, entry_attributes)
    Net::LDAP::Entry.new("cn=#{cn},dc=example,dc=com").tap do |e|
      entry_attributes.each_pair do |attr, value|
        e[attr] = value
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
socialcast-1.4.4 spec/spec_helper.rb
socialcast-1.4.3 spec/spec_helper.rb
socialcast-1.4.2 spec/spec_helper.rb
socialcast-1.4.1 spec/spec_helper.rb
socialcast-1.4.0 spec/spec_helper.rb
socialcast-1.3.20 spec/spec_helper.rb
socialcast-1.3.19 spec/spec_helper.rb
socialcast-1.3.18 spec/spec_helper.rb
socialcast-1.3.17 spec/spec_helper.rb