Sha256: b35d7e5538787d98ba78a9d2f45654185e6ae272641811f141121a42ed7604c4

Contents?: true

Size: 814 Bytes

Versions: 7

Compression:

Stored size: 814 Bytes

Contents

# encoding: utf-8
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

7 entries across 7 versions & 1 rubygems

Version Path
vkontakte-0.0.9 spec/spec_helper.rb
vkontakte-0.0.8 spec/spec_helper.rb
vkontakte-0.0.7 spec/spec_helper.rb
vkontakte-0.0.6 spec/spec_helper.rb
vkontakte-0.0.5 spec/spec_helper.rb
vkontakte-0.0.4 spec/spec_helper.rb
vkontakte-0.0.3 spec/spec_helper.rb