Sha256: a00f7c1379202c62d2dde5ab1a9e720e578648ad52a7d72510b0570ed39cca34

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

require 'test/unit'
require 'rubygems'
require 'spec/test/unit'

# load the libraries
require 'koala'

# load the tests
require 'koala/facebook_no_access_token_tests'
require 'koala/facebook_with_access_token_tests'
require 'koala/facebook_oauth_tests'

class FacebookTestSuite
  def self.suite
    suite = Test::Unit::TestSuite.new
    suite << FacebookNoAccessTokenTests.suite
    suite << FacebookWithAccessTokenTests.suite
    suite << FacebookOAuthTests.suite
    suite
  end
end

# load testing data (see note in readme.md)
# I'm seeing a bug with spec and gets where the facebook_test_suite.rb file gets read in when gets is called
# until that's solved, we'll need to store/update tokens in the access_token file
$testing_data = YAML.load_file("facebook_data.yml") rescue {}

unless $testing_data["oauth_token"]
  puts "Access token tests will fail until you store a valid token in facebook_data.yml"
end

# TODO finish tests for OAuth class
# unless $testing_data["cookie_hash"] && $testing_data["app_id"] && $testing_data["secret"]
#   puts "Cookie tests will fail until you store valid data for the cookie hash, app_id, and app secret in facebook_data.yml"
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
koala-0.5.0 test/koala_tests.rb