Sha256: 3fdec68a54f5d7b072d4d4f3398de5334433ca1697109ea891e3d97cea01c7e3

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'webmock/rspec'
require 'rspec/mocks'
require 'pry'
RSpec::Mocks::setup(Object.new)

require_relative '../lib/socialcast'

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

  config.before do
    stubbed_credentials = File.join(File.dirname(__FILE__), '..', 'fixtures')
    Socialcast::CommandLine.stub(: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

7 entries across 7 versions & 1 rubygems

Version Path
socialcast-1.3.16 spec/spec_helper.rb
socialcast-1.3.15 spec/spec_helper.rb
socialcast-1.3.14 spec/spec_helper.rb
socialcast-1.3.13 spec/spec_helper.rb
socialcast-1.3.12 spec/spec_helper.rb
socialcast-1.3.11 spec/spec_helper.rb
socialcast-1.3.10 spec/spec_helper.rb