Sha256: 8a9515a20fa6fc0ad7c64de95a18cade6d4aa7a9737670334f730b276e54911d

Contents?: true

Size: 796 Bytes

Versions: 2

Compression:

Stored size: 796 Bytes

Contents

require "rubygems"
require "bundler/setup"

$:.push File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require "vkontakte"
require "fakeweb"

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

Vkontakte.setup do |config|
  config.app_id = 10000
  config.app_secret = "supersecret"
  config.format = :json
  config.debug = false
  config.logger = nil
end

RSpec.configure do |config|
  # Remove this line if you don't want RSpec's should and should_not
  # methods or matchers
  require 'rspec/expectations'
  config.include RSpec::Matchers

  # == Mock Framework
  config.mock_with :rspec
  
  config.before(:suite) do
    FakeWeb.allow_net_connect = false
  end
  
  config.after(:suite) do
    FakeWeb.allow_net_connect = true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vkontakte-0.0.2 spec/spec_helper.rb
vkontakte-0.0.1 spec/spec_helper.rb